Skip to content

Commit

Permalink
perf: update ticket elapsed time method to use minutes instead of sec…
Browse files Browse the repository at this point in the history
…onds
  • Loading branch information
RitvikSardana committed Oct 8, 2024
1 parent 6cdea66 commit c1c8ce5
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 c1c8ce5

Please sign in to comment.