1
0
Fork 0

pylint C0122

Linting for misplaced-comparison-constant

Signed-off-by: Corey Shields <cshields@gmail.com>
merge-requests/398/head
Corey Shields 2019-07-12 17:47:28 -04:00
parent 8a3ebb3caf
commit a697548a56
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ load-plugins=pylint_django
[MESSAGES CONTROL]
disable=
C0111,
C0122,
C0411,
C0412,
E1101,

View File

@ -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')