Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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-advanced-user-tools
Commits
0f46639d
Verified
Commit
0f46639d
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into table
parents
98ea0b36
4b1e3dae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!22
Release 0.3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosadvancedtools/crawler.py
+12
-13
12 additions, 13 deletions
src/caosadvancedtools/crawler.py
with
12 additions
and
13 deletions
src/caosadvancedtools/crawler.py
+
12
−
13
View file @
0f46639d
...
...
@@ -138,7 +138,7 @@ class Crawler(object):
if
current_xml
!=
old
:
continue
new_cont
.
update
()
new_cont
.
update
(
unique
=
False
)
def
collect_cfoods
(
self
):
"""
...
...
@@ -539,18 +539,17 @@ carefully and if the changes are ok, click on the following link:
used for the match.
"""
if
entity
.
name
is
None
:
# TODO multiple parents are ignored! Sufficient?
query_string
=
"
FIND Record
"
+
entity
.
get_parents
()[
0
].
name
query_string
+=
"
WITH
"
for
p
in
entity
.
get_properties
():
query_string
+=
(
"'"
+
p
.
name
+
"'
=
'"
+
str
(
get_value
(
p
))
+
"'
AND
"
)
# remove the last AND
query_string
=
query_string
[:
-
4
]
else
:
query_string
=
"
FIND
'
{}
'"
.
format
(
entity
.
name
)
# TODO multiple parents are ignored! Sufficient?
query_string
=
"
FIND Record
"
+
entity
.
get_parents
()[
0
].
name
query_string
+=
"
WITH
"
if
entity
.
name
is
not
None
:
query_string
+=
"
name=
'
{}
'
AND
"
.
format
(
entity
.
name
)
for
p
in
entity
.
get_properties
():
query_string
+=
(
"'"
+
p
.
name
+
"'
=
'"
+
str
(
get_value
(
p
))
+
"'
AND
"
)
# remove the last AND
query_string
=
query_string
[:
-
4
]
logger
.
debug
(
query_string
)
q
=
db
.
Query
(
query_string
)
...
...
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