Skip to content

Commit

Permalink
v0.16.7
Browse files Browse the repository at this point in the history
  • Loading branch information
grigi committed Apr 19, 2020
1 parent 92a3b1b commit 4b6d0ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Changelog
- Added preliminary support for Python 3.9
- ``TruncationTestCase`` now properly quotes table names when it clears them out.
- Add model signals support
- Added ``app_label`` to ``test initializer(...)`` and ``TORTOISE_TEST_APP`` as test environment variable.

0.16.6
------
Expand Down
2 changes: 1 addition & 1 deletion tortoise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,4 +638,4 @@ async def do_stuff():
loop.run_until_complete(Tortoise.close_connections())


__version__ = "0.16.6"
__version__ = "0.16.7"
7 changes: 0 additions & 7 deletions tortoise/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ def get_sql(self, quote_char='"', with_alias=False, **kwargs):
return sql


def escape_val(val: Any) -> Any:
if isinstance(val, str):
print(val)
return val.replace("\\", "\\\\")
return val


def escape_like(val: str) -> str:
return val.replace("\\", "\\\\").replace("%", "\\%").replace("_", "\\_")

Expand Down

0 comments on commit 4b6d0ac

Please sign in to comment.