mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix no attribute 'Insert' bug
This commit is contained in:
parent
4210dfbe77
commit
1eb7ebdc11
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user