Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
b279384e
Commit
b279384e
authored
1 year ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
FIX: try_to_merge_later was initialized too late
parent
b0e45311
No related branches found
No related tags found
1 merge request
!160
STY: styling
Pipeline
#48075
passed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/crawl.py
+2
-1
2 additions, 1 deletion
src/caoscrawler/crawl.py
with
2 additions
and
1 deletion
src/caoscrawler/crawl.py
+
2
−
1
View file @
b279384e
...
@@ -700,6 +700,8 @@ class Crawler(object):
...
@@ -700,6 +700,8 @@ class Crawler(object):
if
ent
.
role
==
"
Record
"
and
len
(
ent
.
parents
)
==
0
:
if
ent
.
role
==
"
Record
"
and
len
(
ent
.
parents
)
==
0
:
raise
RuntimeError
(
f
"
Records must have a parent.
\n
{
ent
}
"
)
raise
RuntimeError
(
f
"
Records must have a parent.
\n
{
ent
}
"
)
try_to_merge_later
=
[]
Alexander Schlemmer
@salexan
·
Feb 27, 2024
Owner
this list is needed in line 731 already!
this list is needed in line 731 already!
Please
register
or
sign in
to reply
# Check whether Records can be identified without identifiable
# Check whether Records can be identified without identifiable
for
i
in
reversed
(
range
(
len
(
flat
))):
for
i
in
reversed
(
range
(
len
(
flat
))):
record
=
flat
[
i
]
record
=
flat
[
i
]
...
@@ -739,7 +741,6 @@ class Crawler(object):
...
@@ -739,7 +741,6 @@ class Crawler(object):
entity_was_treated
=
True
entity_was_treated
=
True
# flat contains Entities which could not yet be checked against the remote server
# flat contains Entities which could not yet be checked against the remote server
try_to_merge_later
=
[]
while
entity_was_treated
and
len
(
flat
)
>
0
:
while
entity_was_treated
and
len
(
flat
)
>
0
:
entity_was_treated
=
False
entity_was_treated
=
False
referencing_entities
=
self
.
create_reference_mapping
(
all_records
)
referencing_entities
=
self
.
create_reference_mapping
(
all_records
)
...
...
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