chore(input): deduce the day to be downloaded
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
eea97c6e7b
commit
82fd747cec
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue