Fix Ruff UP018 (native-literals)

https://docs.astral.sh/ruff/rules/native-literals/
This commit is contained in:
Andrej
2025-05-28 14:25:38 +05:00
parent 3b50993b21
commit 6dbf86382f
2 changed files with 2 additions and 2 deletions
@@ -334,7 +334,7 @@ def _get_element_value(element: ifcopenshell.entity_instance, keys: list[str]) -
elif isinstance(value, (list, tuple)):
value = len(value)
else:
value = int(1)
value = 1
elif key == "class":
value = value.is_a()
elif key == "predefined_type":
+1 -1
View File
@@ -577,7 +577,7 @@ class BCFDB(MyDB):
project_id=str(project_id),
topic_id=str(topic_id),
viewpoint_id=str(comment.viewpoint_guid),
reply_to_comment_id=str("comment.reply_to_comment_guid"),
reply_to_comment_id="comment.reply_to_comment_guid",
comment_id=str(this_comment_guid),
creation_date=self.timestamp(),
comment=comment.comment,