]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/pc/tasks.py
Fixup
[dotfiles.git] / files / pc / tasks.py
index c2cb8e13d220b194dce4e74241125a416550915f..a2a5df7770c104c493529fe9f0f4e2e17c39c164 100644 (file)
@@ -8,7 +8,6 @@ HOME = os.path.expanduser('~')
 TODAY = dt.now().strftime('%Y.%m.%d')
 PAYROLL = os.environ.get('PAYROLL')
 SCHOOL = f"{HOME}/School"
-PAYROLL = f"{HOME}/Nanny.Payroll"
 
 expect_URLs = [
 'budget',
@@ -16,6 +15,7 @@ expect_URLs = [
 'allowance'
 ]
 
+
 URLS = {}
 for url in expect_URLs:
     key = f'URL_{url.upper()}'
@@ -94,16 +94,21 @@ def allowance(c):
     browse(c, URLS['allowance'])
 
 @task
-def payroll(c):
-
-    allowance(c)
-
+def payroll_folders(c):
     # For copying the latest file in
     folder(c, f"{HOME}/pixel7adocuments")
     folder(c, f"{PAYROLL}/data/payroll_inbox")
+    folder(c, f"{PAYROLL}")
+
+
+@task
+def payroll(c):
+
+    allowance(c)
+    payroll_folders(c)
 
     # For editing files
-    folder_payroll(c)
+    code(c, f"{PAYROLL}")
     payroll_jupyter(c)
 
 @task
@@ -112,10 +117,6 @@ def payroll_jupyter(c):
     # For running the payroll scripts
     c.run(f"cd {PAYROLL};{HOME}/envs/jupyter/bin/jupyter-lab")
 
-@task
-def folder_payroll(c):
-    code(c, f"{PAYROLL}")
-
 
 @task()
 def screenshare(c):