X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..94a3d5dc103e37b41a02b5c1c611621e91ba4b75:/src/api/helpers.py?ds=inline diff --git a/src/api/helpers.py b/src/api/helpers.py index 62578e7c3..ffe92846f 100644 --- a/src/api/helpers.py +++ b/src/api/helpers.py @@ -2,12 +2,8 @@ # 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"""