mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01: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:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user