fix: update classified date on new question and answer
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

updated_at now refreshes on: edit, new Q&A question, new Q&A answer.
Does NOT refresh on: page views, interest clicks, close.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-04-10 07:45:58 +02:00
parent dbe41a62f3
commit 9027e4fafc

View File

@ -530,6 +530,7 @@ def ask_question(classified_id):
content=content
)
db.add(question)
classified.updated_at = datetime.now()
db.commit()
# Notify classified author (in-app + email)
@ -601,6 +602,7 @@ def answer_question(classified_id, question_id):
question.answer = answer
question.answered_by = current_user.id
question.answered_at = datetime.now()
classified.updated_at = datetime.now()
db.commit()
# Notify question author (in-app + email)