Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Conjeaud committed Oct 4, 2023
1 parent 6ad3249 commit b945e69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neomodel/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def process_filter_args(cls, kwargs):

if prop not in cls.defined_properties(rels=False):
raise ValueError(
f"No such property {prop} on {cls.__name__}. Note that Neo4j internals like id or elementId are not allowed for use in this operation."
f"No such property {prop} on {cls.__name__}. Note that Neo4j internals like id or element_id are not allowed for use in this operation."
)

property_obj = getattr(cls, prop)
Expand Down
4 changes: 2 additions & 2 deletions neomodel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,6 @@ def version_tag_to_integer(version_tag):
while len(components) < 3:
components.append("0")
num = 0
for a_component in enumerate(components):
num += (10 ** ((len(components) - 1) - a_component[0])) * int(a_component[1])
for index, component in enumerate(components):
num += (10 ** ((len(components) - 1) - index)) * int(component)
return num

0 comments on commit b945e69

Please sign in to comment.