fix location_id of PointLocation

This commit is contained in:
Laura Klünder 2016-12-20 22:39:28 +01:00
parent e3990fcaf0
commit 8a9406275b
2 changed files with 3 additions and 2 deletions

View file

@ -242,6 +242,7 @@ class Graph:
def get_location_points(self, location: Location):
if isinstance(location, PointLocation):
return self.levels[level.name].points_from()
return 'bla'
elif isinstance(location, AreaLocation):
return self.levels[location.level.name].arealocation_points[location.name]