浏览代码

Removing the now unused game.to_dict converter

Kirk Trombley 5 年之前
父节点
当前提交
9c316d1973
共有 1 个文件被更改,包括 0 次插入15 次删除
  1. 0 15
      server/db.py

+ 0 - 15
server/db.py

@@ -63,21 +63,6 @@ class Game(db.Model):
         self.linked_game = linked_game
         db.session.commit()
 
-    def to_dict(self):
-        return {
-            "gameId": self.game_id,
-            "timer": self.timer,
-            "rounds": self.rounds,
-            "coords": {
-                str(c.round_number): {
-                    "lat": c.latitude,
-                    "lng": c.longitude,
-                } for c in self.coordinates
-            },
-            "players": [p.to_dict() for p in self.players],
-            "linkedGame": self.linked_game,
-        }
-
 
 class Player(db.Model):
     player_id = db.Column(db.Integer, primary_key=True, autoincrement=True)