From eaec6bd5a57c1b606b3edae3d83bb542ea271d89 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 4 Oct 2025 10:54:55 +0800 Subject: [PATCH] + Clean up transfer bot --- .gitignore | 1 + cm_transfer_credit.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 33cb387..beb1145 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ .DS_Store *.html +logs diff --git a/cm_transfer_credit.py b/cm_transfer_credit.py index c8fa048..c185948 100644 --- a/cm_transfer_credit.py +++ b/cm_transfer_credit.py @@ -50,8 +50,7 @@ while True: weekday = int(datetime.now().strftime("%w")) hour = int(datetime.now().strftime("%H")) minutes = int(datetime.now().strftime("%M")) - print(f'weekday: {weekday}, hour: {hour}, minutes: {minutes}') - if weekday == 6 and (hour >= 9 and hour < 22): + if weekday == 1 and (hour >= 6 and hour < 13): local_logger = logging.getLogger(f"{__name__}.saturday_processing") local_logger.info("Starting Saturday transfer processing") response = requests.get(f'{api_url}/user')