Skip to content

Commit 323c713

Browse files
committed
feature: Change visible_only to False
1 parent 80fa31e commit 323c713

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

time_tracker_api/time_entries/time_entries_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)