paddy = Participant("paddy", "rqtjio4j1", "*****@*****.**") # Add users db.session.add(peter) db.session.add(paul) db.session.add(per) db.session.add(pablo) db.session.add(paddy) # Make jams rgj1 = Jam("Reddit Game Jam 1", paul, datetime.utcnow() - timedelta(days=30)) rgj2 = Jam("Reddit Game Jam 2", pablo, datetime.utcnow() - timedelta(days=2)) rgj3 = Jam("Reddit Game Jam 3", peter, datetime.utcnow()) loljam = Jam("Loljam", paul, datetime.utcnow() - timedelta(days=3)) rgj4 = Jam("Reddit Game Jam 4", peter, datetime.utcnow() + timedelta(days=14)) rgj3.theme = "Zombies" # Add jams db.session.add(rgj1) db.session.add(rgj2) db.session.add(rgj3) db.session.add(loljam) db.session.add(rgj4) # Make entries best_game = Entry("best game", "Simply the best game", rgj1, peter) space_game = Entry("space game", "A space shooter game", rgj1, paul) clone = Entry("clone", "very original game", rgj2, paddy) test_game = Entry("test_game", "just testing crap out", rgj2, paul) nyan = Entry("nyan", "game with a cat", rgj3, peter) derp = Entry("derp", "herp herp", rgj3, paul)
paul.ability_gamedesigner = True paul.ability_3dartist = True paul.abilities_extra = u"C++, Löve/Lua, Python, Java, SVG, HTML5, JS, Blender" per.setLocation("Thesdorfer Weg 20, Pinneberg") pablo.setLocation("Hamburg") paddy.setLocation("San Francisco") # Make jams rgj1 = Jam("BaconGameJam 01", datetime.utcnow() - timedelta(days=30)) rgj2 = Jam("BaconGameJam 2", datetime.utcnow() - timedelta(days=2)) rgj3 = Jam("BaconGameJam 3", datetime.utcnow()) loljam = Jam("Test Jam", datetime.utcnow() - timedelta(days=3)) rgj4 = Jam("BaconGameJam 4", datetime.utcnow() + timedelta(days=14)) rgj4.team_limit = 4 rgj1.theme = "Bacon" rgj2.theme = "Zombies" rgj3.theme = "Space" loljam.theme = "Funny" rgj4.theme = "HIDDEN, SHOULD NOT BE SHOWN" # Add jams db.session.add(rgj1) db.session.add(rgj2) db.session.add(rgj3) db.session.add(loljam) db.session.add(rgj4) # make people participate peter.joinJam(rgj1) paul.joinJam(rgj1)