pylint C0122
Linting for misplaced-comparison-constant Signed-off-by: Corey Shields <cshields@gmail.com>merge-requests/398/head
parent
8a3ebb3caf
commit
a697548a56
|
@ -5,7 +5,6 @@ load-plugins=pylint_django
|
|||
[MESSAGES CONTROL]
|
||||
disable=
|
||||
C0111,
|
||||
C0122,
|
||||
C0411,
|
||||
C0412,
|
||||
E1101,
|
||||
|
|
|
@ -29,7 +29,7 @@ def frq(value):
|
|||
# Frequency is in kHz range
|
||||
formatted = format(to_format / 1000, '.3f')
|
||||
response = format_html('{0} kHz', formatted)
|
||||
if 1000000 <= to_format:
|
||||
if to_format >= 1000000:
|
||||
# Frequency is in MHz range
|
||||
prec = int(to_format % 1000)
|
||||
formatted = format((to_format // 1000) / 1000, '.3f')
|
||||
|
|
Loading…
Reference in New Issue