Skip to content
Snippets Groups Projects
Commit 03c1b9c1 authored by Jonathan Weth's avatar Jonathan Weth :keyboard: Committed by root
Browse files

Merge pull request #33 from Katharineum/feature/timetable-bgr

Convert BGR to RGB (issue #10)
parents ead6fe3e 91f37992
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -172,7 +172,9 @@ class Subject(object):
self.shortcode = db_obj.name
self.name = db_obj.longname
self.color = db_obj.backcolor
self.hex_color = "#" + str(hex(db_obj.backcolor)).replace("0x", "")
hex_bgr = str(hex(db_obj.backcolor)).replace("0x", "")
hex_rgb = hex_bgr[4:5] + hex_bgr[2:3] + hex_bgr[0:1]
self.hex_color = "#" + hex_rgb
def get_all_subjects():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment