Forgot that there is a timestamp method now.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-18 23:49:51 +01:00
parent 6ef26243f6
commit 8143e9608c

View file

@ -1,5 +1,3 @@
import time
import graphene
from graphene import relay
@ -54,10 +52,10 @@ class EventInstanceNode(DjangoObjectType):
}
def resolve_start(self, info, **kwargs):
return time.mktime(self.when.lower.timetuple())
return self.when.lower.timestamp()
def resolve_end(self, info, **kwargs):
return time.mktime(self.when.upper.timetuple())
return self.when.upper.timestamp()
class SpeakerNode(DjangoObjectType):