Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuon committed Jan 4, 2024
1 parent fbad6ed commit b4db7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion search/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def perform_search(
"search_time": {
"start": search_timer.start_time,
"end": search_timer.end_time,
"elapsed": search_timer.elapsed_time,
"elapsed": search_timer.elapsed_time,
},
"filter_generation_time": {
"start": filter_generation_timer.start_time,
Expand Down
3 changes: 2 additions & 1 deletion search/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def lower_string(self):
return self._lower.isoformat()

class Timer:

""" Simple timer class to measure elapsed time """
def __init__(self):
self._start_time = None
Expand All @@ -94,4 +95,4 @@ def end_time(self):
@property
def elapsed_time(self):
""" Return the elapsed time """
return self._end_time - self._start_time
return self._end_time - self._start_time

0 comments on commit b4db7f5

Please sign in to comment.