From f05ac625e4adb69ef57e536f5e6b33d795e883a5 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Mon, 19 Jan 2026 11:50:32 -0600 Subject: [PATCH] Update babysitting scripts --- files/tab/tasks.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/files/tab/tasks.py b/files/tab/tasks.py index 105e59e..cedc675 100644 --- a/files/tab/tasks.py +++ b/files/tab/tasks.py @@ -9,10 +9,12 @@ import os HOME = os.path.expanduser('~') TODAY = dt.now().strftime('%Y.%m.%d') -KIDS_ALLOWANCE_URL=os.environ.get('KIDS_ALLOWANCE_URL') +KIDS_ALLOWANCE_URL=os.environ.get('KIDS_CASH_URL') +PAYROLL = os.environ.get('PAYROLL') + def browse(c, url): - c.run(f"librefox {url}", asynchronous=True) + c.run(f"librewolf {url}", asynchronous=True) def code(c, path): @@ -20,7 +22,8 @@ def code(c, path): def folder(c, path): - c.run(f"nemo {path}") + c.run(f'dolphin {path}', asynchronous=True) + # c.run(f"nemo {path}") @task @@ -28,26 +31,27 @@ def debug(c): result = c.run('which minetest') print(result.ok) -PAYROLL = f"{HOME}/Nanny.Payroll" - -@task -def folder_payroll(c): - code(c, f"{HOME}/Nanny.Payroll") @task -def folder_allowance(c): +def allowance(c): browse(c, KIDS_ALLOWANCE_URL) -@task(folder_payroll) + +@task def payroll(c): + allowance() + # For copying the latest file in folder(c, f"{HOME}/pixel7adocuments") - folder(c, f"{HOME}/Nanny.Payroll/data/payroll_inbox") + folder(c, f"{PAYROLL}/data/payroll_inbox") + + # For editing files + code(c, f"{PAYROLL}") # For running the payroll scripts - c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter lab") + c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter-lab") @task() -- 2.47.3