mirror of https://github.com/dirtbags/moth.git
Standard team colors
This commit is contained in:
parent
c0b70276c4
commit
86493ff0c9
16
points.py
16
points.py
|
@ -112,7 +112,10 @@ class Storage:
|
|||
except IOError:
|
||||
pass
|
||||
|
||||
try:
|
||||
self.f = open(fn, 'ab')
|
||||
except IOError:
|
||||
self.f = None
|
||||
|
||||
def __contains__(self, req):
|
||||
return req in self.events
|
||||
|
@ -150,6 +153,19 @@ class Storage:
|
|||
return self.points_by_cat_team.get((cat, team), 0)
|
||||
|
||||
|
||||
##
|
||||
## Colors
|
||||
##
|
||||
def colors(teams):
|
||||
colors = ['F0888A', '88BDF0', '00782B', '999900', 'EF9C00',
|
||||
'F4B5B7', 'E2EFFB', '89CA9D', 'FAF519', 'FFE7BB',
|
||||
'BA88F0', '8DCFF4', 'BEDFC4', 'FFFAB2', 'D7D7D7',
|
||||
'C5B9D7', '006189', '8DCB41', 'FFCC00', '898989']
|
||||
return dict(zip(teams, colors))
|
||||
|
||||
|
||||
|
||||
|
||||
##
|
||||
## Testing
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue