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 5549559..6da00eb 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(),
         }