-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save attendance in database #121
Comments
Hi erkutcin , In my case the uid returns the position the user record is stored in the device while id is the actual user id. As long as you do not clear attendance records the device by using the clearAttendance() function, the device will give you the same data plus the new attendance records. We worked around this by creating a combined primary key (or you could use a unique index) over the user id and the date time field.
This way you could use INSERT IGNORE or capture inserts that fail due to duplication. I hope this helps. Sample device attendance:
Sample device users:
|
i am trying to save attendance in database but i get this error can someone help me
?
The text was updated successfully, but these errors were encountered: