Skip to content

Commit 4ad8c51

Browse files
fix
1 parent 8d1b145 commit 4ad8c51

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

guiType.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,14 @@ def hoursToColor(name):
171171
timet,days = ioServ.calcSeasonTime(name)
172172
timet /= 3600
173173

174+
if timet >= 54: # light gray, done with hours
175+
return '#e0e0e0'
176+
174177
if days > 0:
175178
days -= 7
176179
timet -= days*8/7 # in season
177180

178-
if timet >= 54: # light gray, done with hours
179-
return '#e0e0e0'
180-
elif timet >= 6:
181+
if timet >= 6:
181182
return '#00bf00' # green
182183
elif 2 <= timet < 6:
183184
return '#FFAF00' # yellow orange

0 commit comments

Comments
 (0)