1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00
RadioStats/create.py

13 lines
441 B
Python
Raw Normal View History

2018-02-08 15:40:00 +01:00
import channelInfo
2018-02-05 21:44:37 +01:00
from models import *
for i in [Play, Channel, Song]:
i.drop_table()
for i in [Channel, Song, Play]:
i.create_table()
2018-02-08 15:40:00 +01:00
for id, channel in channelInfo.channels.items():
print("create", channel.stationname)
Channel.create(shortname=channel.shortname, stationname=channel.stationname, has_data=channel.has_data,
primary_color=channel.primary_color, secondary_color=channel.secondary_color)