Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 15, 2025
1 parent 33ebfd1 commit 4402866
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyiron_base/database/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def _job_dict(
"""
if not self._sql_lite:
def escape(s, escape_char='\\', special_chars="_%"):

def escape(s, escape_char="\\", special_chars="_%"):
"""Insert escape_char in front of special_chars, unless present.
Handles the cases where s already contains escaped characters,
Expand All @@ -326,8 +327,10 @@ def escape(s, escape_char='\\', special_chars="_%"):
s = s.replace(c, escape_char + c)
return s
else:
def escape(s, escape_char='\\', special_chars="_%"):

def escape(s, escape_char="\\", special_chars="_%"):
return s

dict_clause = {}
# FOR GET_ITEMS_SQL: clause = []
if user is not None:
Expand Down

0 comments on commit 4402866

Please sign in to comment.