git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
as a comment in plc.wsgi: keep track of potentially useful debug snippet
[plcapi.git]
/
PLC
/
Leases.py
diff --git
a/PLC/Leases.py
b/PLC/Leases.py
index
66e7902
..
9da3d3b
100644
(file)
--- a/
PLC/Leases.py
+++ b/
PLC/Leases.py
@@
-53,7
+53,7
@@
class Lease(Row):
if round_up:
timestamp += (granularity-1)
# round down
- timestamp = (timestamp
/
granularity) * granularity
+ timestamp = (timestamp
//
granularity) * granularity
# return a SQL string
return Timestamp.sql_validate_utc(timestamp)