fix bug
This commit is contained in:
parent
fc7d7ee8d7
commit
cdd5136294
@ -184,7 +184,7 @@ def read_mongo(start_date, end_date):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if sys.argv == 2:
|
||||
if len(sys.argv) == 2:
|
||||
try:
|
||||
d = datetime.datetime.strptime(sys.argv[1], "%Y-%m-%d")
|
||||
except Exception:
|
||||
|
Loading…
x
Reference in New Issue
Block a user