|
@@ -148,7 +148,7 @@ def init_invite_code(id):
|
|
|
|
|
|
def add_to_basic_role(id):
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/AI_anchor?charset=utf8mb4')
|
|
|
- state ='insert into user_role (user_id,role_id) values('+str(id)+',5);insert into user_role (user_id,role_id) values('+str(id)+',6); '
|
|
|
+ state ='insert into user_role (user_id,role_id) values('+str(id)+',5),('+str(id)+',6); '
|
|
|
print(state)
|
|
|
code = 'ok'
|
|
|
try :
|