Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
4dcd8e8b
Commit
4dcd8e8b
authored
1 year ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'd
parent
bdad1e39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!130
Release v0.14.0
,
!125
F escape
Pipeline
#46640
canceled
1 year ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/linkahead/apiutils.py
+2
-2
2 additions, 2 deletions
src/linkahead/apiutils.py
unittests/test_apiutils.py
+0
-1
0 additions, 1 deletion
unittests/test_apiutils.py
with
2 additions
and
3 deletions
src/linkahead/apiutils.py
+
2
−
2
View file @
4dcd8e8b
...
...
@@ -626,10 +626,10 @@ def _same_id_as_resolved_entity(this, that):
def
escape_quoted_text
(
text
:
str
)
->
str
:
"""
The characters `\` and `*` need to be escaped if used in quoted expressions in the query
"""
The characters `
\
\
` and `*` need to be escaped if used in quoted expressions in the query
language.
This function return the given string where the characters `\` and `*` are escaped by a `\`.
This function return the given string where the characters `
\
\
` and `*` are escaped by a `
\
\
`.
Parameters
----------
...
...
This diff is collapsed.
Click to expand it.
unittests/test_apiutils.py
+
0
−
1
View file @
4dcd8e8b
...
...
@@ -635,7 +635,6 @@ def test_merge_id_with_resolved_entity():
assert
recA
.
get_property
(
rtname
).
value
==
recB
.
get_property
(
rtname
).
value
def
test_escape_quoted_text
():
assert
escape_quoted_text
(
"
bla
"
)
==
"
bla
"
assert
escape_quoted_text
(
"
bl
\\
a
"
)
==
"
bl
\\\\
a
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment