Skip to content

Commit 7659c9f

Browse files
authored
Merge pull request #161 from ioet/160-disable-automatic-clock-outs
fix: #160 disabling automatic clock-outs
2 parents 3de8807 + e386e37 commit 7659c9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

time_tracker_api/time_entries/time_entries_model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,12 @@ def find_running(self):
408408
time_entry = self.repository.find_running(
409409
event_ctx.tenant_id, event_ctx.user_id
410410
)
411-
self.stop_time_entry_if_was_left_running(time_entry)
411+
# TODO: we need to make this work using the users time zone
412+
# This is disabled as part of https://github.com/ioet/time-tracker-backend/issues/160
413+
# Remove all these comments after implementing
414+
# https://github.com/ioet/time-tracker-backend/issues/159
415+
# https://github.com/ioet/time-tracker-backend/issues/162
416+
# self.stop_time_entry_if_was_left_running(time_entry)
412417
return time_entry
413418

414419
def get_worked_time(self, conditions: dict = {}):

0 commit comments

Comments
 (0)