From a63aa0798bc96afd772031f3d7a59c2bb86d0a58 Mon Sep 17 00:00:00 2001 From: Coding with Peter Date: Fri, 28 Apr 2023 10:12:44 -0700 Subject: [PATCH] fix rosters checker --- pipelines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines.py b/pipelines.py index 64d6efe..af436d5 100644 --- a/pipelines.py +++ b/pipelines.py @@ -1153,7 +1153,7 @@ def fetch_current_rosters(): [print(" %s" % f) for f in files] i = 0 got_courses = 0 - if len(files)>1: # and 'users.csv' in files: + if len(files)>0: # and 'users.csv' in files: try: if 'users.csv' in files: sftp.get('users.csv','cache/rosters/users-'+dt_label+'.csv') @@ -1201,7 +1201,7 @@ def fetch_current_rosters(): def fetch_current_rosters_auto(): - schedule.every().hour.at(":57").do(fetch_current_rosters) + schedule.every().hour.at(":58").do(fetch_current_rosters) schedule.every().day.at("12:35").do(sync_non_interactive) schedule.every().day.at("21:00").do(sync_non_interactive)