Skip to content

Commit

Permalink
#5 Correct label color issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBarton27 committed Mar 17, 2022
1 parent ee2fffc commit 0c3542f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sit/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_from_db_result(cls, db_result):

class LabelColor(SitObject):

table_name = 'label_cclor'
table_name = 'label_color'

def __init__(self, db_id: int = None, hex_code: str = None, white_text: bool = True):
super().__init__(db_id)
Expand All @@ -78,14 +78,14 @@ def white_text(self):

@staticmethod
def generate():
blue_jeans = LabelColor('##5DA9E9')
bone = LabelColor('#DDDBCB', white_text=False)
dark_cornflower_blue = LabelColor('#003F91')
charcoal = LabelColor('#3C474B')
light_coral = LabelColor('#FF7073')
middle_blue_green = LabelColor('#9EEFE5', white_text=False)
midnight = LabelColor('#6D326D')
steel_blue = LabelColor('#4F7CAC')
blue_jeans = LabelColor(hex_code='#5DA9E9')
bone = LabelColor(hex_code='#DDDBCB', white_text=False)
dark_cornflower_blue = LabelColor(hex_code='#003F91')
charcoal = LabelColor(hex_code='#3C474B')
light_coral = LabelColor(hex_code='#FF7073')
middle_blue_green = LabelColor(hex_code='#9EEFE5', white_text=False)
midnight = LabelColor(hex_code='#6D326D')
steel_blue = LabelColor(hex_code='#4F7CAC')
return [blue_jeans, bone, charcoal, dark_cornflower_blue, light_coral, middle_blue_green, midnight, steel_blue]

def _get_create_params_dict(self):
Expand Down

0 comments on commit 0c3542f

Please sign in to comment.