File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
time_tracker_api/time_entries Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,27 @@ def create_sql_date_range_filter(date_range: dict) -> str:
157157 else :
158158 return ''
159159
160+ def find_all_entries (
161+ self ,
162+ event_context : EventContext ,
163+ conditions : dict = {},
164+ custom_sql_conditions : List [str ] = [],
165+ date_range : dict = {},
166+ ):
167+ custom_sql_conditions .append (
168+ self .create_sql_date_range_filter (date_range )
169+ )
170+
171+ custom_params = self .generate_params (date_range )
172+ time_entries = CosmosDBRepository .find_all (
173+ self ,
174+ event_context = event_context ,
175+ conditions = conditions ,
176+ custom_sql_conditions = custom_sql_conditions ,
177+ custom_params = custom_params ,
178+ )
179+ return time_entries
180+
160181 def find_all (
161182 self ,
162183 event_context : EventContext ,
@@ -461,7 +482,7 @@ def get_worked_time(self, args: dict = {}):
461482 )
462483
463484 conditions = {"owner_id" : event_ctx .user_id }
464- time_entries = self .repository .find_all (
485+ time_entries = self .repository .find_all_entries (
465486 event_ctx ,
466487 conditions = conditions ,
467488 date_range = worked_time .date_range (),
You can’t perform that action at this time.
0 commit comments