1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Improve newuser

This commit is contained in:
Steffo 2018-06-05 12:33:26 +02:00
parent 33036a69e0
commit 080f53ccb0

View file

@ -13,18 +13,18 @@ except Exception as e:
print(e) print(e)
else: else:
session.add(steam) session.add(steam)
try: try:
dota = db.Dota.create(session, steam.steam_id) dota = db.Dota.create(session, steam.steam_id)
except Exception as e: except Exception as e:
print(e) print(e)
else: else:
session.add(dota) session.add(dota)
try: try:
rl = db.RocketLeague.create(session, steam.steam_id) rl = db.RocketLeague.create(session, steam.steam_id)
except Exception as e: except Exception as e:
print(e) print(e)
else: else:
session.add(rl) session.add(rl)
try: try:
osu = db.Osu.create(session, user.id, input("Osu! username: ")) osu = db.Osu.create(session, user.id, input("Osu! username: "))
except Exception as e: except Exception as e: