Skip to content

Commit f17d841

Browse files
committed
refactor: TT-185 rename args in TimeEntriesRepository
1 parent c44f20e commit f17d841

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

time_tracker_api/time_entries/time_entries_repository.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
TimeEntryCosmosDBModel,
99
)
1010

11-
from utils.time import (
12-
current_datetime_str,
13-
)
11+
from utils.time import current_datetime_str
1412

1513
from utils.extend_model import (
1614
add_project_info_to_time_entries,
@@ -202,8 +200,8 @@ def find_all(
202200
def find_all_v2(
203201
self,
204202
event_context: EventContext,
205-
time_entries_id: List[str],
206-
owner_id_list: List[str],
203+
time_entry_ids: List[str],
204+
owner_ids: List[str],
207205
date_range: tuple = None,
208206
fields: dict = None,
209207
limit: int = None,
@@ -216,8 +214,8 @@ def find_all_v2(
216214
query_builder = (
217215
TimeEntryQueryBuilder()
218216
.add_sql_date_range_condition(date_range)
219-
.add_sql_in_condition(time_entries_id)
220-
.add_sql_in_condition(owner_id_list)
217+
.add_sql_in_condition(time_entry_ids)
218+
.add_sql_in_condition(owner_ids)
221219
.add_sql_where_equal_condition(fields)
222220
.add_sql_limit_condition(limit)
223221
.add_sql_offset_condition(offset)

0 commit comments

Comments
 (0)