Fix no attribute 'Insert' bug

This commit is contained in:
Zedifus 2021-08-26 23:39:11 +01:00
parent 4210dfbe77
commit 1eb7ebdc11

View File

@ -475,7 +475,7 @@ class db_shortcuts:
try: try:
user_crafty = User_Crafty.select().where(User_Crafty.user_id == user_id).get() user_crafty = User_Crafty.select().where(User_Crafty.user_id == user_id).get()
except User_Crafty.DoesNotExist: except User_Crafty.DoesNotExist:
user_crafty = User_Crafty.Insert({ user_crafty = User_Crafty.insert({
User_Crafty.user_id: user_id, User_Crafty.user_id: user_id,
User_Crafty.permissions: "000", User_Crafty.permissions: "000",
User_Crafty.limit_server_creation: 0, User_Crafty.limit_server_creation: 0,