licenses[row.name] = row
db.session.add(row)
+ mod = Package()
+ mod.approved = True
+ mod.name = "alpha"
+ mod.title = "Alpha Test"
+ mod.license = licenses["MIT"]
+ mod.type = PackageType.MOD
+ mod.author = ruben
+ mod.tags.append(tags["mapgen"])
+ mod.tags.append(tags["environment"])
+ mod.repo = "https://github.com/ezhh/other_worlds"
+ mod.issueTracker = "https://github.com/ezhh/other_worlds/issues"
+ mod.forums = 16015
+ mod.shortDesc = "The content library should not be used yet as it is still in alpha"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
+
+ rel = PackageRelease()
+ rel.package = mod
+ rel.title = "v1.0.0"
+ rel.url = "https://github.com/ezhh/handholds/archive/master.zip"
+ rel.approved = True
+ db.session.add(rel)
+
mod1 = Package()
mod1.approved = True
mod1.name = "awards"
rel.package = mod1
rel.title = "v1.0.0"
rel.url = "https://github.com/rubenwardy/awards/archive/master.zip"
+ rel.approved = True
db.session.add(rel)
mod2 = Package()
db.session.add(mod1)
db.session.add(mod2)
+ mod = Package()
+ mod.approved = True
+ mod.name = "handholds"
+ mod.title = "Mountain Climbing"
+ mod.license = licenses["MIT"]
+ mod.type = PackageType.MOD
+ mod.author = ez
+ mod.tags.append(tags["player_effects"])
+ mod.repo = "https://github.com/ezhh/handholds"
+ mod.issueTracker = "https://github.com/ezhh/handholds/issues"
+ mod.forums = 17069
+ mod.shortDesc = "Adds hand holds and climbing thingies"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
+
+ rel = PackageRelease()
+ rel.package = mod
+ rel.title = "v1.0.0"
+ rel.url = "https://github.com/ezhh/handholds/archive/master.zip"
+ rel.approved = True
+ db.session.add(rel)
+
+ mod = Package()
+ mod.approved = True
+ mod.name = "other_worlds"
+ mod.title = "Other Worlds"
+ mod.license = licenses["MIT"]
+ mod.type = PackageType.MOD
+ mod.author = ez
+ mod.tags.append(tags["mapgen"])
+ mod.tags.append(tags["environment"])
+ mod.repo = "https://github.com/ezhh/other_worlds"
+ mod.issueTracker = "https://github.com/ezhh/other_worlds/issues"
+ mod.forums = 16015
+ mod.shortDesc = "Adds space with asteroids and comets"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
+
+ mod = Package()
+ mod.approved = True
+ mod.name = "food"
+ mod.title = "Food"
+ mod.license = licenses["LGPLv2.1"]
+ mod.type = PackageType.MOD
+ mod.author = ruben
+ mod.tags.append(tags["player_effects"])
+ mod.repo = "https://github.com/rubenwardy/food/"
+ mod.issueTracker = "https://github.com/rubenwardy/food/issues/"
+ mod.forums = 2960
+ mod.shortDesc = "Adds lots of food and an API to manage ingredients"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
+
+ mod = Package()
+ mod.approved = True
+ mod.name = "food_sweet"
+ mod.title = "Sweet Foods"
+ mod.license = licenses["CC0"]
+ mod.type = PackageType.MOD
+ mod.author = ruben
+ mod.tags.append(tags["player_effects"])
+ mod.repo = "https://github.com/rubenwardy/food_sweet/"
+ mod.issueTracker = "https://github.com/rubenwardy/food_sweet/issues/"
+ mod.forums = 9039
+ mod.shortDesc = "Adds sweet food"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
game1 = Package()
game1.approved = True
db.session.add(game1)
+ rel = PackageRelease()
+ rel.package = game1
+ rel.title = "v1.0.0"
+ rel.url = "https://github.com/rubenwardy/capturetheflag/archive/master.zip"
+ rel.approved = True
+ db.session.add(rel)
+
+
+ mod = Package()
+ mod.approved = True
+ mod.name = "pixelbox"
+ mod.title = "PixelBOX Reloaded"
+ mod.license = licenses["CC0"]
+ mod.type = PackageType.TXP
+ mod.author = ruben
+ mod.forums = 14132
+ mod.shortDesc = "This is an update of the original PixelBOX texture pack by the brillant artist Gambit"
+ mod.desc = "This is the long desc"
+ db.session.add(mod)
+
+ rel = PackageRelease()
+ rel.package = mod
+ rel.title = "v1.0.0"
+ rel.url = "http://mamadou3.free.fr/Minetest/PixelBOX.zip"
+ rel.approved = True
+ db.session.add(rel)
db.session.commit()
else: