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
|
||||
|
||||
def get_color(self):
|
||||
color = {
|
||||
'stairs': '#dddddd',
|
||||
'escalator': '#bbbbbb',
|
||||
'elevator': '#00ffff',
|
||||
}.get(self.category)
|
||||
color = super().get_color()
|
||||
if not color:
|
||||
color = super().get_color()
|
||||
color = {
|
||||
'stairs': '#dddddd',
|
||||
'escalator': '#bbbbbb',
|
||||
'elevator': '#00ffff',
|
||||
}.get(self.category)
|
||||
return color
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue