Initial commit

This commit is contained in:
rubenwardy
2018-03-18 17:43:30 +00:00
commit 366a2302d0
14 changed files with 796 additions and 0 deletions

17
setup.py Normal file
View File

@@ -0,0 +1,17 @@
import os, datetime
delete_db = False
if delete_db and os.path.isfile("app/data.sqlite"):
os.remove("app/data.sqlite")
if not os.path.isfile("app/data.sqlite"):
from app import models
print("Creating database tables...")
models.db.create_all()
print("Filling database...")
models.db.session.commit()
else:
print("Database already exists")