From 5b61386ca17a08c79dcd03d8dda40ba58546473b 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 d5b451fb7b..829dc9e5f6 100644 --- a/securedrop_client/api_jobs/uploads.py +++ b/securedrop_client/api_jobs/uploads.py @@ -62,6 +62,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