|
@@ -1263,9 +1263,6 @@ def gen_avatar(name_hash, imgurl):
|
|
|
statement = 'UPDATE avatar_service_status SET status = 0 WHERE id=1;' #only one row in this table, which id 1 one
|
|
|
db.query(statement)
|
|
|
def call_voice(text):
|
|
|
- print(text)
|
|
|
- print(len(text))
|
|
|
- print(type(text))
|
|
|
c = rpyc.connect("localhost", 8858)
|
|
|
c._config['sync_request_timeout'] = None
|
|
|
remote_svc = c.root
|
|
@@ -1316,9 +1313,6 @@ def call_speech(text,speaker):
|
|
|
|
|
|
|
|
|
def verify_jwt_token(token):
|
|
|
- for row in db.query('SELECT * FROM jwt_black_list'):
|
|
|
- print(row)
|
|
|
- print(first(db.query('SELECT COUNT(*) FROM jwt_black_list where token="'+token+'"'))['COUNT(*)'])
|
|
|
if first(db.query('SELECT COUNT(*) FROM jwt_black_list where token="'+token+'"'))['COUNT(*)'] == 0:
|
|
|
return 'ok'
|
|
|
else:
|