]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Add the fuzzy and epoch dates to the maps JSON response.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 8 Jul 2017 13:18:51 +0000 (09:18 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 8 Jul 2017 13:18:51 +0000 (09:18 -0400)
xonstat/models/map.py

index 5549559f5d42a23da9da63242396a326d970a1ca..6da00eb31b3bd776a0874d2c29230c3f8cfc7572 100644 (file)
@@ -24,6 +24,8 @@ class Map(FuzzyDateMixin, EpochMixin):
             'map_id': self.map_id,
             'name': self.name,
             'version': self.version,
+            'create_dt_fuzzy': self.fuzzy_date(),
+            'create_dt_epoch': self.epoch(),
         }