fix linter warnings

This commit is contained in:
Laura Klünder 2022-04-03 16:42:17 +02:00
parent 03437a3a40
commit 4e15cc1b74
10 changed files with 12 additions and 12 deletions

View file

@ -15,7 +15,8 @@ from django.utils import timezone
from django.utils.crypto import get_random_string
from django.utils.functional import cached_property
from django.utils.text import format_lazy
from django.utils.translation import gettext_lazy as _, ngettext_lazy
from django.utils.translation import gettext_lazy as _
from django.utils.translation import ngettext_lazy
from c3nav.mapdata.fields import I18nField
from c3nav.mapdata.grid import grid

View file

@ -65,7 +65,7 @@ class Report(models.Model):
@property
def form_cls(self):
from c3nav.site.forms import ReportMissingLocationForm, ReportIssueForm
from c3nav.site.forms import ReportIssueForm, ReportMissingLocationForm
return ReportMissingLocationForm if self.category == 'missing-location' else ReportIssueForm
@cached_property

View file

@ -70,8 +70,6 @@ class OpenSCADEngine(Base3DEngine):
else:
self.root = OpenScadBlock('scale([%(scale)f, %(scale)f, %(scale)f])' % {
'scale': self.scale,
'x': -(self.minx + self.maxx) / 2,
'y': -(self.miny + self.maxy) / 2,
})
def custom_render(self, level_render_data, access_permissions, full_levels):

View file

@ -1,7 +1,7 @@
from django.urls import path, register_converter
from c3nav.mapdata.converters import SignedIntConverter, AccessPermissionsConverter, HistoryModeConverter, \
HistoryFileExtConverter, ArchiveFileExtConverter
from c3nav.mapdata.converters import (AccessPermissionsConverter, ArchiveFileExtConverter, HistoryFileExtConverter,
HistoryModeConverter, SignedIntConverter)
from c3nav.mapdata.views import get_cache_package, map_history, tile
register_converter(SignedIntConverter, 'sint')