Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actionsf7ed9b363358
diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.py
index 87e0cdca1..bb3ba6a19 100644
--- a/wger/exercises/api/views.py
+++ b/wger/exercises/api/views.py
@@ -17,10 +17,6 @@
import logging
from uuid import UUID
-# Third Party
-import bleach
-from actstream import action as actstream_action
-from bleach.css_sanitizer import CSSSanitizer
# Django
from django.conf import settings
from django.contrib.postgres.search import TrigramSimilarity
@@ -28,6 +24,11 @@ from django.db.models import Q
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.views.decorators.cache import cache_page
+
+# Third Party
+import bleach
+from actstream import action as actstream_action
+from bleach.css_sanitizer import CSSSanitizer
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import (
OpenApiParameter,
@@ -89,6 +90,7 @@ from wger.utils.constants import (
from wger.utils.db import is_postgres_db
from wger.utils.language import load_language
+
logger = logging.getLogger(__name__)
diff --git a/wger/exercises/models/image.py b/wger/exercises/models/image.py
index 3185d65a1..740cdc0e2 100644
--- a/wger/exercises/models/image.py
+++ b/wger/exercises/models/image.py
@@ -21,6 +21,7 @@ import uuid
# Django
from django.db import models
from django.utils.translation import gettext_lazy as _
+
# Third Party
from simple_history.models import HistoricalRecords
diff --git a/wger/utils/images.py b/wger/utils/images.py
index e76eb1306..ebb4c0322 100644
--- a/wger/utils/images.py
+++ b/wger/utils/images.py
@@ -12,13 +12,15 @@
#
# You should have received a copy of the GNU Affero General Public License
+# Django
+from django.core.exceptions import ValidationError
+
# Third Party
from PIL import (
Image,
UnidentifiedImageError,
)
-# Django
-from django.core.exceptions import ValidationError
+
MAX_FILE_SIZE_MB = 20