mirror of
https://github.com/RYGhub/royalnet.git
synced 2025-02-17 10:53:57 +00:00
Improve newuser
This commit is contained in:
parent
33036a69e0
commit
080f53ccb0
1 changed files with 12 additions and 12 deletions
12
newuser.py
12
newuser.py
|
@ -13,17 +13,17 @@ except Exception as e:
|
|||
print(e)
|
||||
else:
|
||||
session.add(steam)
|
||||
try:
|
||||
try:
|
||||
dota = db.Dota.create(session, steam.steam_id)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
else:
|
||||
else:
|
||||
session.add(dota)
|
||||
try:
|
||||
try:
|
||||
rl = db.RocketLeague.create(session, steam.steam_id)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print(e)
|
||||
else:
|
||||
else:
|
||||
session.add(rl)
|
||||
try:
|
||||
osu = db.Osu.create(session, user.id, input("Osu! username: "))
|
||||
|
|
Loading…
Add table
Reference in a new issue