File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
time_tracker_api/time_entries Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,17 @@ def find_all(
168168
169169 if time_entries :
170170 custom_conditions = create_in_condition (time_entries , "project_id" )
171+ custom_conditions_activity = create_in_condition (time_entries , "activity_id" )
171172
172173 project_dao = projects_model .create_dao ()
173174 projects = project_dao .get_all (
174- custom_sql_conditions = [custom_conditions ]
175+ custom_sql_conditions = [custom_conditions ],
176+ visible_only = False
175177 )
176178 add_project_name_to_time_entries (time_entries , projects )
177179
178180 activity_dao = activities_model .create_dao ()
179- activities = activity_dao .get_all ()
181+ activities = activity_dao .get_all (custom_sql_conditions = [ custom_conditions_activity ], visible_only = False )
180182 add_activity_name_to_time_entries (time_entries , activities )
181183
182184 users = AzureConnection ().users ()
You can’t perform that action at this time.
0 commit comments