From 88ea2297936b88280e0c5af697c423ca19f62c93 Mon Sep 17 00:00:00 2001 From: redshiftzero Date: Thu, 27 Feb 2020 11:59:31 -0500 Subject: [PATCH] app: update source.interaction_count after successful reply --- securedrop_client/api_jobs/uploads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/securedrop_client/api_jobs/uploads.py b/securedrop_client/api_jobs/uploads.py index 8616b7115..c45ca9f25 100644 --- a/securedrop_client/api_jobs/uploads.py +++ b/securedrop_client/api_jobs/uploads.py @@ -63,6 +63,8 @@ def call_api(self, api_client: API, session: Session) -> str: # Delete draft, add reply to replies table. session.add(reply_db_object) session.delete(draft_reply_db_object) + source.interaction_count += 1 + session.add(source) session.commit() return reply_db_object.uuid