Skip to content

Commit

Permalink
Merge pull request #6 from navariltd/develop6
Browse files Browse the repository at this point in the history
fix - constant time, shift change
  • Loading branch information
maniamartial authored Aug 23, 2024
2 parents febc9f5 + b3adebb commit 205507e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ def get_shift(biometric_id):
return None

def update_last_sync_time(shift, time):
shift_doc = frappe.get_doc("Shift", shift)
shift_doc.last_sync_of_checkin = time
shift_doc.save(ignore_permissions=True)
frappe.db.set_value("Shift Type", shift, "last_sync_of_checkin", time, update_modified=False)
frappe.db.commit()
return "done"

Expand Down
6 changes: 3 additions & 3 deletions navari_cams_biometric/fixtures/custom_field.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_list_view": 1,
"in_preview": 0,
"in_standard_filter": 0,
"insert_after": "shift_actual_end",
"insert_after": "device_id",
"is_system_generated": 0,
"is_virtual": 0,
"label": "Constant Time",
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2024-08-12 11:25:11.242453",
"modified": "2024-08-12 12:19:36.089213",
"module": null,
"name": "Employee Checkin-custom_constant_time",
"no_copy": 0,
Expand Down

0 comments on commit 205507e

Please sign in to comment.