Просмотр исходного кода

Fix agent_push_record table name

StrayWarrior 3 дней назад
Родитель
Сommit
eb32a06734
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      pqai_agent/data_models/agent_push_record.py

+ 1 - 1
pqai_agent/data_models/agent_push_record.py

@@ -6,7 +6,7 @@ from pqai_agent import configs
 Base = declarative_base()
 
 class AgentPushRecord(Base):
-    __tablename__ = configs.get().get('storage', {}).get('push_record', {}).get('table_name', 'agent_push_record_dev')
+    __tablename__ = configs.get().get('storage', {}).get('push_record', {}).get('table', 'agent_push_record_dev')
     id = Column(Integer, primary_key=True)
     staff_id = Column(Integer)
     user_id = Column(Integer)