Fix pylint C1801 errors
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>merge-requests/394/head
parent
d1fb393c79
commit
853381a5dc
|
@ -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 = []
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue