summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/meetingtools/apps/room/models.py')
-rw-r--r--src/meetingtools/apps/room/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py
index b636816..37b9475 100644
--- a/src/meetingtools/apps/room/models.py
+++ b/src/meetingtools/apps/room/models.py
@@ -45,6 +45,12 @@ class Room(models.Model):
else:
return int(time.mktime(self.lastvisited.timetuple())*1000)
+ def lastupdate(self):
+ if not self.lastupdated:
+ return 0
+ else:
+ return int(time.mktime(self.lastupdated.timetuple())*1000)
+
def go_url(self):
return "%s/go/%s" % (BASE_URL,self.urlpath)