1
0
Fork 0

chore(input): deduce the day to be downloaded

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-12-03 14:12:20 +01:00
parent eea97c6e7b
commit 82fd747cec
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import datetime
import yaml
import requests
import sys
@ -25,7 +26,9 @@ def get_input(session, year, day):
def main():
day = sys.argv[1]
day = datetime.datetime.now().day
if len(sys.argv) == 2:
day = sys.argv[1]
session, year = load_config()
problem_input = get_input(session, year, day)