Add more licenses to DB

This commit is contained in:
rubenwardy 2018-05-13 00:56:32 +01:00
parent 8552796edd
commit 9f33f5fb1b
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 6 additions and 3 deletions

View File

@ -17,11 +17,13 @@ if not os.path.isfile("db.sqlite"):
ruben = User("rubenwardy")
ruben.github_username = "rubenwardy"
ruben.forums_username = "rubenwardy"
ruben.rank = UserRank.ADMIN
db.session.add(ruben)
ez = User("Shara")
ez.github_username = "Ezhh"
ez.forums_username = "Shara"
ez.rank = UserRank.EDITOR
db.session.add(ez)
@ -44,14 +46,15 @@ if not os.path.isfile("db.sqlite"):
db.session.add(row)
licenses = {}
for license in ["LGPLv2.1", "LGPLv3", "GPLv2.1", "GPLv3", "AGPLv2.1", "AGPLv3",
"MIT", "Apache", "BSD", "ZLib", "CC0", "CC-BY-SA", "CC-BY", "CC-BY-NC-SA"]:
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", "CC-BY-NC-SA", "MIT", "ZLib"]:
row = License(license)
licenses[row.name] = row
db.session.add(row)
mod = Package()
mod.approved = True
mod.name = "alpha"