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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
8a4b2242
Commit
8a4b2242
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
fix arguments
parent
edf47c2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!108
Release 0.5.0
,
!106
Suggestion htw
,
!104
Create a new scanner module and move functions from crawl module there
Pipeline
#34912
failed
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/crawl.py
+3
-2
3 additions, 2 deletions
src/caoscrawler/crawl.py
with
3 additions
and
2 deletions
src/caoscrawler/crawl.py
+
3
−
2
View file @
8a4b2242
...
...
@@ -1045,7 +1045,7 @@ def crawler_main(crawled_directory_path: str,
remove_prefix
=
prefix
if
dry_run
:
ins
,
upd
=
crawler
.
synchronize
(
crawled_data
,
commit_changes
=
False
)
ins
,
upd
=
crawler
.
synchronize
(
commit_changes
=
False
,
crawled_data
=
crawled_data
)
inserts
=
[
str
(
i
)
for
i
in
ins
]
updates
=
[
str
(
i
)
for
i
in
upd
]
with
open
(
"
dry.yml
"
,
"
w
"
)
as
f
:
...
...
@@ -1091,7 +1091,8 @@ def crawler_main(crawled_directory_path: str,
raise
RuntimeError
(
"
Missing RecordTypes: {}
"
.
format
(
"
,
"
.
join
(
notfound
)))
crawler
.
synchronize
(
crawled_data
,
commit_changes
=
True
,
unique_names
=
unique_names
)
crawler
.
synchronize
(
commit_changes
=
True
,
unique_names
=
unique_names
,
crawled_data
=
crawled_data
)
return
0
...
...
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