]> git.lizzy.rs Git - cheatdb.git/blobdiff - setup.py
Add list of relevant forum topics to last page of results
[cheatdb.git] / setup.py
index e1c0168568d9e3d2fe4d71a8a45673be455d7ea1..df57698556b11eac63ddff4b61d2dc296e215e6e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,7 @@ if not "FLASK_CONFIG" in os.environ:
 test_data = len(sys.argv) >= 2 and sys.argv[1].strip() == "-t"
 
 from app.models import *
+from app.utils import make_flask_user_password
 
 def defineDummyData(licenses, tags, ruben):
        ez = User("Shara")
@@ -342,6 +343,8 @@ db.create_all()
 print("Filling database...")
 
 ruben = User("rubenwardy")
+ruben.active = True
+ruben.password = make_flask_user_password("tuckfrump")
 ruben.github_username = "rubenwardy"
 ruben.forums_username = "rubenwardy"
 ruben.rank = UserRank.ADMIN
@@ -359,12 +362,12 @@ for tag in ["Inventory", "Mapgen", "Building", \
 licenses = {}
 for license in ["GPLv2.1", "GPLv3", "LGPLv2.1", "LGPLv3", "AGPLv2.1", "AGPLv3",
                                "Apache", "BSD 3-Clause", "BSD 2-Clause", "CC0", "CC-BY-SA",
-                               "CC-BY", "MIT", "ZLib"]:
+                               "CC-BY", "MIT", "ZLib", "Other (Free)"]:
        row = License(license)
        licenses[row.name] = row
        db.session.add(row)
 
-for license in ["CC-BY-NC-SA"]:
+for license in ["CC-BY-NC-SA", "Other (Non-free)"]:
        row = License(license, False)
        licenses[row.name] = row
        db.session.add(row)