Skip to content

Commit

Permalink
Fix parameter sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Nov 28, 2024
1 parent 66e6fce commit 072e02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mergin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,13 +755,13 @@ def project_versions_in_range(self, project_path, since=None, to=None):
if type(since) == str:
num_since = int_version(since)
elif since == None:
num_since == 1
num_since = 1
else:
# keep the since parameter as is
num_since = since

if type(to) == str:
num_to = int_version(int)
num_to = int_version(to)
else:
# keep the to parameter as is
num_to = to
Expand Down

0 comments on commit 072e02d

Please sign in to comment.