|
|
@ -113,8 +113,15 @@ class LiveChatConfig:
|
|
|
|
rows = cursor.fetchall()
|
|
|
|
rows = cursor.fetchall()
|
|
|
|
for word, substitutes in rows:
|
|
|
|
for word, substitutes in rows:
|
|
|
|
results[word] = substitutes
|
|
|
|
results[word] = substitutes
|
|
|
|
|
|
|
|
cursor.close()
|
|
|
|
return results
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def update_chat_enable_status(self):
|
|
|
|
|
|
|
|
cursor = self.conn.cursor()
|
|
|
|
|
|
|
|
cursor.execute("update live_config set value = 1 where key = 'chat_enable_status'")
|
|
|
|
|
|
|
|
self.conn.commit()
|
|
|
|
|
|
|
|
cursor.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PromptQueue:
|
|
|
|
class PromptQueue:
|
|
|
|
def __init__(self, maxsize=0):
|
|
|
|
def __init__(self, maxsize=0):
|
|
|
|