mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:02:24 +00:00
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.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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user