feat(core): initial commit unified architecture (scud_ai v2.5 with modular web_api)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Добавляем корень проекта в путь поиска модулей Python
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from core.database import get_connection
|
||||
|
||||
rule_text = (
|
||||
"Сотрудники, присутствующие в 1С:ЗУП, но отсутствующие в СКУД Орион Pro, "
|
||||
"являются аномалией синхронизации профилей. ИИ должен запрашивать у СБ статус выдачи пропуска."
|
||||
)
|
||||
|
||||
with get_connection() as conn:
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("INSERT OR IGNORE INTO ai_knowledge_base (rule_text) VALUES (?)", (rule_text,))
|
||||
conn.commit()
|
||||
|
||||
print("✓ Правило успешно внесено в SQLite БД!")
|
||||
Reference in New Issue
Block a user