Fix non-zero-padded days in tests

See https://github.com/CartoDB/dataservices-api/issues/204 and related
tickets.
This commit is contained in:
Rafa de la Torre
2017-07-07 15:11:23 +02:00
parent 074234b8da
commit 49a53e4cd7
2 changed files with 5 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ def increment_service_uses(redis_conn, username, orgname=None,
yearmonth = date.strftime('%Y%m')
redis_name = "{0}:{1}:{2}:{3}:{4}".format(prefix, entity_name,
service, metric, yearmonth)
redis_conn.zincrby(redis_name, date.day, amount)
redis_conn.zincrby(redis_name, date.strftime('%d'), amount)
def plpy_mock_config():