fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
489 stars 319 forks source link

attendances #197

Closed HCWcoder closed 9 months ago

HCWcoder commented 9 months ago

So after i do attendances = conn.get_attendance()

I get this list `: 473 : 2022-11-15 15:08:49 (1, 0)

: 489 : 2022-11-15 15:26:03 (1, 1) : 489 : 2022-11-15 15:29:44 (1, 1) : 87 : 2022-11-15 15:33:55 (1, 1) : 215 : 2022-11-15 15:55:12 (1, 1) : 261 : 2022-11-15 15:55:23 (1, 1) : 143 : 2022-11-15 15:55:30 (1, 1)` now how to change one of those attendance time ?
kurenai-ryu commented 9 months ago

change? you can't/shouldn't change the attendance records.

once in your array you can manipulate the data as you seem fit, but there's no way to store modified records, not even with the SDK

shadow046 commented 9 months ago

oh.. i think this one wants to tampered its attendance?

HCWcoder commented 9 months ago

Sometimes we need to do remote check in And I was looking for a option to edit the entry What about changing the time of the machine then punch in ?

On Mon, Dec 11, 2023, 2:58 AM shadow046 @.***> wrote:

oh.. i think this one wants to tampered its attendance?

— Reply to this email directly, view it on GitHub https://github.com/fananimi/pyzk/issues/197#issuecomment-1849163527, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 . You are receiving this because you authored the thread.Message ID: @.***>

shadow046 commented 9 months ago

Sometimes we need to do remote check in And I was looking for a option to edit the entry What about changing the time of the machine then punch in ? On Mon, Dec 11, 2023, 2:58 AM shadow046 @.> wrote: oh.. i think this one wants to tampered its attendance? — Reply to this email directly, view it on GitHub <#197 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 . You are receiving this because you authored the thread.Message ID: @.>

changing time of the machine before punch in is tampering the biometrics too.. if you are in official business and not in the office. you dont need to punch in. just fill up an official business form.

like this one..

image

HCWcoder commented 9 months ago

The thing is we are making a python script for employees to check in check out on OT from office for the previous days

So I'm just asking if I made a script to change time to whatever preferred by the user it will cause damage?

And I'm the Dev of the company and previously noted on paper the ot they work from home

Now they will do it manually on the punching U got me ?

On Mon, Dec 11, 2023, 9:14 AM shadow046 @.***> wrote:

Sometimes we need to do remote check in And I was looking for a option to edit the entry What about changing the time of the machine then punch in ? … <#m-2111441672531250669> On Mon, Dec 11, 2023, 2:58 AM shadow046 @.> wrote: oh.. i think this one wants to tampered its attendance? — Reply to this email directly, view it on GitHub <#197 (comment) https://github.com/fananimi/pyzk/issues/197#issuecomment-1849163527>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 . You are receiving this because you authored the thread.Message ID: @.>

changing time of the machine before punch in is tampering the biometrics too.. if you are in official business and not in the office. you dont need to punch in. just fill up an official business form.

— Reply to this email directly, view it on GitHub https://github.com/fananimi/pyzk/issues/197#issuecomment-1849450774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SV34RGI3KJGZZV7I6LYI2XGHAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGQ2TANZXGQ . You are receiving this because you authored the thread.Message ID: @.***>

shadow046 commented 9 months ago

The thing is we are making a python script for employees to check in check out on OT from office for the previous days So I'm just asking if I made a script to change time to whatever preferred by the user it will cause damage? And I'm the Dev of the company and previously noted on paper the ot they work from home Now they will do it manually on the punching U got me ? On Mon, Dec 11, 2023, 9:14 AM shadow046 @.> wrote: Sometimes we need to do remote check in And I was looking for a option to edit the entry What about changing the time of the machine then punch in ? … <#m-2111441672531250669> On Mon, Dec 11, 2023, 2:58 AM shadow046 @.> wrote: oh.. i think this one wants to tampered its attendance? — Reply to this email directly, view it on GitHub <#197 (comment) <#197 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 https://github.com/notifications/unsubscribe-auth/ACJE5SXGXQSXQPCS3VLCKDTYIZLFBAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGE3DGNJSG4 . You are receiving this because you authored the thread.Message ID: @.> changing time of the machine before punch in is tampering the biometrics too.. if you are in official business and not in the office. you dont need to punch in. just fill up an official business form. — Reply to this email directly, view it on GitHub <#197 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJE5SV34RGI3KJGZZV7I6LYI2XGHAVCNFSM6AAAAABAGQWXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGQ2TANZXGQ . You are receiving this because you authored the thread.Message ID: @.>

it will not cause any damage to the device.. but if you allowed them to change the time to whatever preferred by the users.. all the employee will be on time and dont have lates.

correction i think we are making a python script not for employees to correct their lates. it is for automated getting the records of attendance and calculate it for the HR to reduces their works.

opps.. if you allowed them to change the time.. make sure you set it back to the current time before ending your script.