f r
This commit is contained in:
@@ -2,7 +2,6 @@ import time
|
||||
import random
|
||||
import json
|
||||
import os
|
||||
import glob
|
||||
|
||||
from typing import List, Dict, Optional, Any, Tuple
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
import random
|
||||
|
||||
@@ -139,7 +138,7 @@ class ExpressionSelector:
|
||||
key = (source_id, expr_type, situation, style)
|
||||
if key not in updates_by_key:
|
||||
updates_by_key[key] = expr
|
||||
for (chat_id, expr_type, situation, style), expr in updates_by_key.items():
|
||||
for (chat_id, expr_type, situation, style), _expr in updates_by_key.items():
|
||||
query = Expression.select().where(
|
||||
(Expression.chat_id == chat_id) &
|
||||
(Expression.type == expr_type) &
|
||||
|
||||
@@ -9,7 +9,6 @@ from src.chat.utils.statistic import OnlineTimeRecordTask, StatisticOutputTask
|
||||
from src.chat.emoji_system.emoji_manager import get_emoji_manager
|
||||
from src.chat.willing.willing_manager import get_willing_manager
|
||||
from src.chat.message_receive.chat_stream import get_chat_manager
|
||||
from src.chat.message_receive.storage import MessageStorage
|
||||
from src.config.config import global_config
|
||||
from src.chat.message_receive.bot import chat_bot
|
||||
from src.common.logger import get_logger
|
||||
|
||||
Reference in New Issue
Block a user