summaryrefslogtreecommitdiff
path: root/opendc/models/tile.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-26 17:10:06 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-26 17:10:06 +0200
commit44f0bd378763f4c481fb8a87847ca84469b35a67 (patch)
treed9517715e54b635ebd068ab3041afc60c2b30c62 /opendc/models/tile.py
parenta1589e75358558eada7ffc2efc7e3fa7160d233e (diff)
Copy over topology_ids on branch
Diffstat (limited to 'opendc/models/tile.py')
-rw-r--r--opendc/models/tile.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/opendc/models/tile.py b/opendc/models/tile.py
index 344b6135..e7f64160 100644
--- a/opendc/models/tile.py
+++ b/opendc/models/tile.py
@@ -12,14 +12,15 @@ class Tile(Model):
'objectId': 'object_id',
'objectType': 'object_type',
'positionX': 'position_x',
- 'positionY': 'position_y'
+ 'positionY': 'position_y',
+ 'topologyId': 'topology_id'
}
}
PATH = '/v1/rooms/{roomId}/tiles'
TABLE_NAME = 'tiles'
- COLUMNS = ['id', 'position_x', 'position_y', 'room_id', 'object_id']
+ COLUMNS = ['id', 'position_x', 'position_y', 'room_id', 'object_id', 'topology_id']
COLUMNS_PRIMARY_KEY = ['id']
def google_id_has_at_least(self, google_id, authorization_level):