+ Clean up transfer bot
This commit is contained in:
parent
336ea4bf41
commit
eaec6bd5a5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
__pycache__
|
||||
.DS_Store
|
||||
*.html
|
||||
logs
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user