Upload notes to Google Sheets after uploading a CSV file
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
1cbf95e6e1
commit
40988348d3
|
@ -1177,6 +1177,9 @@ class PoolUploadNotesView(VolunteerMixin, FormView, DetailView):
|
||||||
note.set_all(*list(map(int, passage_notes)))
|
note.set_all(*list(map(int, passage_notes)))
|
||||||
note.save()
|
note.save()
|
||||||
|
|
||||||
|
if os.getenv('GOOGLE_PRIVATE_KEY_ID', None):
|
||||||
|
pool.update_notes_spreadsheet()
|
||||||
|
|
||||||
messages.success(self.request, _("Notes were successfully uploaded."))
|
messages.success(self.request, _("Notes were successfully uploaded."))
|
||||||
return super().form_valid(form)
|
return super().form_valid(form)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue