mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Improve newuser
This commit is contained in:
parent
33036a69e0
commit
080f53ccb0
1 changed files with 12 additions and 12 deletions
24
newuser.py
24
newuser.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue