From 9867e5e2a828a19f6fae7820651aa81c59b1a0fd Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 14 Nov 2020 23:44:53 +0100 Subject: [PATCH] Linting --- apps/participation/management/commands/fix_matrix_channels.py | 2 +- apps/participation/management/commands/fix_sympa_lists.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/participation/management/commands/fix_matrix_channels.py b/apps/participation/management/commands/fix_matrix_channels.py index ec7802b..d9459d0 100644 --- a/apps/participation/management/commands/fix_matrix_channels.py +++ b/apps/participation/management/commands/fix_matrix_channels.py @@ -17,7 +17,7 @@ class Command(BaseCommand): stat_file = os.stat("corres2math/static/logo.png") with open("corres2math/static/logo.png", "rb") as f: resp = Matrix.upload(f, filename="logo.png", content_type="image/png", - filesize=stat_file.st_size)[0][0] + filesize=stat_file.st_size)[0][0] avatar_uri = resp.content_uri with open(".matrix_avatar", "w") as f: f.write(avatar_uri) diff --git a/apps/participation/management/commands/fix_sympa_lists.py b/apps/participation/management/commands/fix_sympa_lists.py index f558a8a..63152b5 100644 --- a/apps/participation/management/commands/fix_sympa_lists.py +++ b/apps/participation/management/commands/fix_sympa_lists.py @@ -1,7 +1,6 @@ -from django.db.models import Q - from corres2math.lists import get_sympa_client from django.core.management import BaseCommand +from django.db.models import Q from participation.models import Team from registration.models import CoachRegistration, StudentRegistration