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