+ Clean up transfer bot

This commit is contained in:
yiekheng 2025-10-04 10:54:55 +08:00
parent 336ea4bf41
commit eaec6bd5a5
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
__pycache__
.DS_Store
*.html
logs

View File

@ -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')