Skip to content

Commit

Permalink
correct implementation of isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
afwilkin committed Dec 4, 2023
1 parent 142cbc8 commit 52da3f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/tornado_handlers/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_original_filename(default_value, new_file_suffix):
self.write(str(ulog.initial_parameters[param_key]))

#if the value is an int write a 6, if not write a 9
if isinstance(ulog.initial_parameters[param_key]) == int:
if isinstance(ulog.initial_parameters[param_key], int):
self.write(delimiter)
self.write("6")
else:
Expand Down Expand Up @@ -171,7 +171,7 @@ def kml_colors(flight_mode):
self.write(str(param_value))

#if the value is an int write a 6, if not write a 9
if isinstance(param_value) == int:
if isinstance(param_value, int):
self.write(delimiter)
self.write("6")
else:
Expand Down

0 comments on commit 52da3f9

Please sign in to comment.