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()
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"
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: