mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-29 13:41:04 +02:00
Don't use Google Sheets in tests (for now)
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
from collections import OrderedDict
|
||||
import json
|
||||
import os
|
||||
from random import randint, shuffle
|
||||
|
||||
from asgiref.sync import sync_to_async
|
||||
@ -990,7 +991,9 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
|
||||
if await pool.is_exportable():
|
||||
await pool.export()
|
||||
|
||||
await sync_to_async(self.tournament.update_ranking_spreadsheet)()
|
||||
# Update Google Sheets final sheet
|
||||
if os.getenv('GOOGLE_PRIVATE_KEY_ID', None):
|
||||
await sync_to_async(self.tournament.update_ranking_spreadsheet)()
|
||||
|
||||
@ensure_orga
|
||||
async def continue_final(self, **kwargs):
|
||||
|
Reference in New Issue
Block a user