Skip to content

Commit

Permalink
fix(parser): add repr to escape strings
Browse files Browse the repository at this point in the history
  • Loading branch information
TudorAndrei-Pythia committed Oct 4, 2023
1 parent b8f5ba2 commit e8688a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sirqle/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, config: Config | None = None):
def _parse_args(self, args: str | list | dict | tuple | Query, quote=True) -> str:
if isinstance(args, str):
if quote and ":" not in args:
return f"'{args}'"
return repr(args)
return args
elif isinstance(args, list):
if quote:
Expand Down

0 comments on commit e8688a2

Please sign in to comment.