1
0
Fork 0

Fix pylint C1801 errors

Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>
merge-requests/394/head
Pierros Papadeas 2019-07-12 09:20:01 +03:00
parent d1fb393c79
commit 853381a5dc
No known key found for this signature in database
GPG Key ID: 8DB97129D9982991
3 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,6 @@ disable=
C0411,
C0412,
C0325,
C1801,
E1101,
E0213,
R0101,

View File

@ -47,9 +47,9 @@ def calculate_statistics():
mode_data.append(tr)
# needed to pass testing in a fresh environment with no modes in db
if len(mode_label) == 0:
if not mode_label:
mode_label = ['FM']
if len(mode_data) == 0:
if not mode_data:
mode_data = ['FM']
band_label = []

View File

@ -128,7 +128,7 @@ def transmitter_suggestion(request):
transmitter.reviewed = False
transmitter.approved = False
uuid = transmitter_form.cleaned_data['uuid']
if uuid is not None and len(uuid) > 0:
if uuid:
transmitter.uuid = uuid
transmitter.save()