Skip to content

Commit

Permalink
Fix for in-progress job, creating graphs with end = now()
Browse files Browse the repository at this point in the history
  • Loading branch information
guilbaults committed Jun 6, 2024
1 parent 401463b commit 534cec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userportal/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def request_to_username(request):


def get_step(start, end, minimum=60):
if start is None:
start = datetime.now()
if end is None:
end = datetime.now()
delta = end - start

if delta.days > 6 * 30:
Expand Down

0 comments on commit 534cec2

Please sign in to comment.