2017-10-17 18:49:28 +00:00
|
|
|
import db
|
|
|
|
|
2017-10-27 09:53:05 +00:00
|
|
|
user = db.Royal.create(input("Nome account: "))
|
2017-10-25 09:09:06 +00:00
|
|
|
db.session.add(user)
|
|
|
|
db.session.commit()
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
steam = db.Steam.create(user.id, input("Steam ID 1: "))
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(steam)
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
dota = db.Dota.create(steam.steam_id)
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(dota)
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
rl = db.RocketLeague.create(steam.steam_id)
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(rl)
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
osu = db.Osu.create(user.id, input("Osu! username: "))
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(osu)
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
overwatch = db.Overwatch.create(user.id, input("Battle.net battletag: "))
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(overwatch)
|
|
|
|
try:
|
2017-10-27 09:53:05 +00:00
|
|
|
lol = db.LeagueOfLegends.create(user.id, input("League summoner name: "))
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
2017-10-25 09:09:06 +00:00
|
|
|
else:
|
|
|
|
db.session.add(lol)
|
|
|
|
db.session.commit()
|
|
|
|
db.session.close()
|