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
8601c70b
Commit
8601c70b
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
FIX: remove typos
parent
b264e743
No related branches found
No related tags found
3 merge requests
!91
Release 0.3
,
!69
Refactor Identifiable and caches
,
!67
MAINT: introduce an identifiable class
Pipeline
#30606
passed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/crawl.py
+7
-7
7 additions, 7 deletions
src/caoscrawler/crawl.py
with
7 additions
and
7 deletions
src/caoscrawler/crawl.py
+
7
−
7
View file @
8601c70b
...
@@ -726,7 +726,7 @@ class Crawler(object):
...
@@ -726,7 +726,7 @@ class Crawler(object):
# 2. Can it be identified via a path?
# 2. Can it be identified via a path?
# 3. Is it in the cache of already checked Records?
# 3. Is it in the cache of already checked Records?
# 4. Can it be checked on the remote server?
# 4. Can it be checked on the remote server?
# 5. Does it have to be new since a needed referenc is missing?
# 5. Does it have to be new since a needed referenc
e
is missing?
for
i
in
reversed
(
range
(
len
(
flat
))):
for
i
in
reversed
(
range
(
len
(
flat
))):
record
=
flat
[
i
]
record
=
flat
[
i
]
identifiable
=
self
.
identifiableAdapter
.
get_identifiable
(
record
)
identifiable
=
self
.
identifiableAdapter
.
get_identifiable
(
record
)
...
@@ -742,17 +742,17 @@ class Crawler(object):
...
@@ -742,17 +742,17 @@ class Crawler(object):
del
flat
[
i
]
del
flat
[
i
]
# 2. Can it be identified via a path?
# 2. Can it be identified via a path?
elif
record
.
path
is
not
None
:
elif
record
.
path
is
not
None
:
exiting
=
self
.
_get_entity_by_path
(
record
.
path
)
exi
s
ting
=
self
.
_get_entity_by_path
(
record
.
path
)
if
exiting
is
None
:
if
exi
s
ting
is
None
:
to_be_inserted
.
append
(
record
)
to_be_inserted
.
append
(
record
)
self
.
add_to_remote_missing_cache
(
record
)
self
.
add_to_remote_missing_cache
(
record
)
del
flat
[
i
]
del
flat
[
i
]
else
:
else
:
record
.
id
=
exiting
.
id
record
.
id
=
exi
s
ting
.
id
# TODO check the following copying of _size and _checksum
# TODO check the following copying of _size and _checksum
# Copy over checksum and size too if it is a file
# Copy over checksum and size too if it is a file
record
.
_size
=
exiting
.
_size
record
.
_size
=
exi
s
ting
.
_size
record
.
_checksum
=
exiting
.
_checksum
record
.
_checksum
=
exi
s
ting
.
_checksum
to_be_updated
.
append
(
record
)
to_be_updated
.
append
(
record
)
self
.
add_to_remote_existing_cache
(
record
)
self
.
add_to_remote_existing_cache
(
record
)
del
flat
[
i
]
del
flat
[
i
]
...
@@ -785,7 +785,7 @@ class Crawler(object):
...
@@ -785,7 +785,7 @@ class Crawler(object):
del
flat
[
i
]
del
flat
[
i
]
resolved_references
=
True
resolved_references
=
True
# 5. Does it have to be new since a needed referenc is missing?
# 5. Does it have to be new since a needed referenc
e
is missing?
# (Is it impossible to check this record because an identifiable references a
# (Is it impossible to check this record because an identifiable references a
# missing record?)
# missing record?)
elif
self
.
_has_missing_object_in_references
(
identifiable
):
elif
self
.
_has_missing_object_in_references
(
identifiable
):
...
...
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