User is not force logged out - TypeError: 'float' object cannot be interpreted as an integer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Timekpr-nExT |
Invalid
|
Undecided
|
Eduards Bezverhijs |
Bug Description
On Wednesday child_account should be allowed to use account between 16:30-17:20 and also 18:00-20:00. Account is correctly logged out at 17:20, but not at 20:00. There is also an error in the logs at about 19:59.
I'm using version 0.5.2 on ubunutu desktop 22.04
2022-11-09 19:59:03.610780: sending tln: 57
2022-11-09 19:59:03.610887: ---=== ERROR working on users ===---
2022-11-09 19:59:03.611310: Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
timeLeftArray = self._timekprUs
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
message.
TypeError: 'float' object cannot be interpreted as an integer
This issue was spotted and fixed in the beginning of this year after a python version update in some linux distributions.
The fix is incorporated in 0.5.3+ version of timekpr which is not yet packaged in debian and as a result not in ubuntu too.
Please install version from my PPA, latest at this point is 0.5.4 and this should fix it.
Pls report back whether it's all ok.