Skip to content

Commit

Permalink
type comparisons have failed for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyqu committed Sep 10, 2023
1 parent 0798f2a commit af51fda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sheets/sheets_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __getattr__(self, name):
# Excel time format, http://www.cpearson.com/excel/datetime.htm
# 40000 is around 2009
# 50000 is around 2040, ph I hope Sysblok will thrive in 2040
if type(value) == float and 40000 <= value <= 50000:
if type(value) is float and 40000 <= value <= 50000:
return convert_excel_datetime_to_string(value)
else:
return value
Expand Down
2 changes: 1 addition & 1 deletion src/tg/handlers/access_config_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _set_config(update, config_path: str, new_value, config_manager: ConfigManag
update,
)
return
if type(current_config) != type(new_value):
if type(current_config) is not type(new_value):
reply(
load(
"access_config_handler__set_config_type_mismatch",
Expand Down

0 comments on commit af51fda

Please sign in to comment.