Skip to content

Commit

Permalink
fix start and end options (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
veroandreo committed Jan 4, 2021
1 parent 9f9168d commit 729c32f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ def main():
if user is None or password is None:
gs.fatal(_("No user or password given"))

start_date = ""
start_date = options["start"]
delta_days = timedelta(60)
if not options["start"]:
start_date = date.today() - delta_days
start_date = start_date.strftime("%Y-%m-%d")

end_date = ""
end_date = options["end"]
if not options["end"]:
end_date = date.today().strftime("%Y-%m-%d")

Expand Down

0 comments on commit 729c32f

Please sign in to comment.