X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..b6acaa277803adf1f39dd61b362ca499b1bb6064:/src/api/helpers.py diff --git a/src/api/helpers.py b/src/api/helpers.py index 03fc18ce6..ffe92846f 100644 --- a/src/api/helpers.py +++ b/src/api/helpers.py @@ -2,15 +2,9 @@ # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from time import mktime from piston.resource import Resource -def timestamp(dtime): - """converts a datetime.datetime object to a timestamp int""" - return int(mktime(dtime.timetuple())) - - class CsrfExemptResource(Resource): """A Custom Resource that is csrf exempt""" def __init__(self, handler, authentication=None):