hodooor / Hodoor

Server side for Hodoor - Casual attendance system
GNU General Public License v3.0
8 stars 6 forks source link

#2 issue solution - NAT is updated overtime #21

Closed ToKraTheSecond closed 7 years ago

ToKraTheSecond commented 7 years ago

This request solves #2 issue.

Changed functions: In attendance/models.py - get_not_assigned_duration() Solution requires new if statement for IN swipe correction. Possibility of corrected IN swipe has to be checked first.

Changed tests: Added new test in attendance/models.py - test_NAT_value_of_opened_session_is_updated_overtime_if_IN_swipe_is_corrected This test requires import of sleep() method from time library.