]> apps.delaporte.us Git - dotfiles.git/commitdiff
Update babysitting scripts
authorEdward Delaporte <edward@delaporte.us>
Mon, 19 Jan 2026 17:50:32 +0000 (11:50 -0600)
committerEdward Delaporte <edward@delaporte.us>
Mon, 19 Jan 2026 17:50:32 +0000 (11:50 -0600)
files/tab/tasks.py

index 105e59e35f7e3ef10c3ad6928a1d67c9e1507794..cedc6755be9f6798bfce4724a15dcc9b9ffb240b 100644 (file)
@@ -9,10 +9,12 @@ import os
 HOME = os.path.expanduser('~')
 TODAY = dt.now().strftime('%Y.%m.%d')
 
 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):
 
 def browse(c, url):
-    c.run(f"librefox {url}", asynchronous=True)
+    c.run(f"librewolf {url}", asynchronous=True)
 
 
 def code(c, path):
 
 
 def code(c, path):
@@ -20,7 +22,8 @@ def code(c, path):
 
 
 def folder(c, path):
 
 
 def folder(c, path):
-    c.run(f"nemo {path}")
+    c.run(f'dolphin {path}', asynchronous=True)
+    # c.run(f"nemo {path}")
 
 
 @task
 
 
 @task
@@ -28,26 +31,27 @@ def debug(c):
     result = c.run('which minetest')
     print(result.ok)
 
     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
 
 @task
-def folder_allowance(c):
+def allowance(c):
     browse(c, KIDS_ALLOWANCE_URL)
 
 
     browse(c, KIDS_ALLOWANCE_URL)
 
 
-@task(folder_payroll)
+
+@task
 def payroll(c):
 
 def payroll(c):
 
+    allowance()
+
     # For copying the latest file in
     folder(c, f"{HOME}/pixel7adocuments")
     # 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
 
     # 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()
 
 
 @task()