From 9f33f5fb1bc0371e8558dbe77790907ef10180d9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 May 2018 00:56:32 +0100 Subject: [PATCH] Add more licenses to DB --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2144190d..81ad2543 100644 --- a/setup.py +++ b/setup.py @@ -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"