X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/b426735fbdbe45dedff9a38987c5e541bd29b4c7..fdbb2688223616c6c06685eb93f87d074ec4e4e7:/files/pc/tasks.py?ds=inline diff --git a/files/pc/tasks.py b/files/pc/tasks.py index c2cb8e1..a2a5df7 100644 --- a/files/pc/tasks.py +++ b/files/pc/tasks.py @@ -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):