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
|
#!/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()
|
||||||
|
|
Loading…
Reference in a new issue