Skip to content

Commit

Permalink
Merge pull request #2011 from RitvikSardana/tick-closing-perf
Browse files Browse the repository at this point in the history
perf: update ticket elapsed time method to use minutes instead of seconds
  • Loading branch information
RitvikSardana authored Oct 10, 2024
2 parents 6cdea66 + c1c8ce5 commit 7bf22ef
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,11 @@ def calc_elapsed_time(self, start_time, end_time) -> float:
or not_in_working_day_list
or not self.is_working_time(current_time, working_hours)
):
current_time += timedelta(seconds=1)
current_time += timedelta(minutes=1)
continue
total_seconds += 1
current_time += timedelta(seconds=1)

return total_seconds
current_time += timedelta(minutes=1)
return total_seconds * 60

def get_holidays(self):
res = []
Expand Down

0 comments on commit 7bf22ef

Please sign in to comment.