swap space color logic
This commit is contained in:
parent
50a8b19e31
commit
4ef273fc00
1 changed files with 6 additions and 6 deletions
|
@ -78,13 +78,13 @@ class Space(SpecificLocation, LevelSectionGeometryMixin, models.Model):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_color(self):
|
def get_color(self):
|
||||||
color = {
|
color = super().get_color()
|
||||||
'stairs': '#dddddd',
|
|
||||||
'escalator': '#bbbbbb',
|
|
||||||
'elevator': '#00ffff',
|
|
||||||
}.get(self.category)
|
|
||||||
if not color:
|
if not color:
|
||||||
color = super().get_color()
|
color = {
|
||||||
|
'stairs': '#dddddd',
|
||||||
|
'escalator': '#bbbbbb',
|
||||||
|
'elevator': '#00ffff',
|
||||||
|
}.get(self.category)
|
||||||
return color
|
return color
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue