From 40d24740ed1de62dce9f8b6310c1164d68517327 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 6 Apr 2024 22:05:48 +0200 Subject: [PATCH] Fix import orders Signed-off-by: Emmy D'Anello --- .../management/commands/renew_gdrive_notifications.py | 2 +- participation/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/participation/management/commands/renew_gdrive_notifications.py b/participation/management/commands/renew_gdrive_notifications.py index d7ad12e..46ca658 100644 --- a/participation/management/commands/renew_gdrive_notifications.py +++ b/participation/management/commands/renew_gdrive_notifications.py @@ -3,13 +3,13 @@ from hashlib import sha1 -import gspread from django.conf import settings from django.contrib.sites.models import Site from django.core.management import BaseCommand from django.urls import reverse from django.utils import timezone from django.utils.timezone import localtime +import gspread from ...models import Tournament diff --git a/participation/views.py b/participation/views.py index ff789ee..91d0921 100644 --- a/participation/views.py +++ b/participation/views.py @@ -1,8 +1,9 @@ # Copyright (C) 2020 by Animath # SPDX-License-Identifier: GPL-3.0-or-later + import asyncio -import csv from concurrent.futures import ThreadPoolExecutor +import csv from hashlib import sha1 from io import BytesIO import os @@ -11,7 +12,6 @@ from tempfile import mkdtemp from typing import Any, Dict from zipfile import ZipFile -from asgiref.sync import sync_to_async from django.conf import settings from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin