X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..96390ae52c2017ae4fb9a61831beeb68c808a2f6:/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):