Skip to content

Commit

Permalink
db: Fix a possible type mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jun 2, 2021
1 parent 96f5d31 commit 457f0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensipscli/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def get_where(self, filter_keys):
for k, v in filter_keys.items():
where_str += " AND {} = ".format(k)
if type(v) == int:
where_str += v
where_str += str(v)
else:
where_str += "'{}'".format(
v.translate(str.maketrans({'\'': '\\\''})))
Expand Down

0 comments on commit 457f0d7

Please sign in to comment.