This commit is contained in:
Yohann D'ANELLO 2020-11-14 23:44:53 +01:00
parent 48b34e4362
commit 9867e5e2a8
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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