From: parmentelat Date: Mon, 14 Jan 2019 11:12:26 +0000 (+0100) Subject: use // instead of / when rounding timestamp in Lease X-Git-Tag: plcapi-7.1-0~18 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e990f50ad3bd8c01c8006637c7b416e9bd0e58aa;p=plcapi.git use // instead of / when rounding timestamp in Lease --- diff --git a/PLC/Leases.py b/PLC/Leases.py index 66e79029..9da3d3b0 100644 --- 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)