1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-18 14:43:46 +02:00
se-simulator/apply_colors.py
Lukas Winkler de90a78874 make python files executable
thanks to jaytaylor (#2)
2018-05-13 13:32:13 +02:00

11 lines
371 B
Python
Executable file

#!/usr/bin/env python
import utils
from models import *
from extra_data import site_colors
for site in Site.select():
if site.url in site_colors:
site.primary_color = "#" + site_colors[site.url]["primary"]
site.foreground_color = "#" + site_colors[site.url]["fg"]
site.background_color = "#" + site_colors[site.url]["bg"]
site.save()