From 40988348d3eb1974b6a41899f4e0e0bf9d302bc2 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 31 Mar 2024 20:59:00 +0200 Subject: [PATCH] Upload notes to Google Sheets after uploading a CSV file Signed-off-by: Emmy D'Anello --- participation/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/participation/views.py b/participation/views.py index af59700..1074805 100644 --- a/participation/views.py +++ b/participation/views.py @@ -1177,6 +1177,9 @@ class PoolUploadNotesView(VolunteerMixin, FormView, DetailView): note.set_all(*list(map(int, passage_notes))) note.save() + if os.getenv('GOOGLE_PRIVATE_KEY_ID', None): + pool.update_notes_spreadsheet() + messages.success(self.request, _("Notes were successfully uploaded.")) return super().form_valid(form)