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
f34b5192
Commit
f34b5192
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Add missing `force-missing-obligatory` flag
parent
e0b81504
No related branches found
No related tags found
1 merge request
!5
FIX: Ignore obligatory properties when inserting identifiables
Pipeline
#9199
failed
3 years ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosadvancedtools/crawler.py
+4
-3
4 additions, 3 deletions
src/caosadvancedtools/crawler.py
with
4 additions
and
3 deletions
src/caosadvancedtools/crawler.py
+
4
−
3
View file @
f34b5192
...
...
@@ -544,8 +544,8 @@ carefully and if the changes are ok, click on the following link:
try
:
if
len
(
cfood
.
to_be_updated
)
>
0
:
logger
.
info
(
"
Updating {} Records...
"
.
format
(
len
(
cfood
.
to_be_updated
)))
"
Updating {} Records...
"
.
format
(
len
(
cfood
.
to_be_updated
)))
guard
.
safe_update
(
cfood
.
to_be_updated
,
unique
=
False
)
except
FileNotFoundError
as
e
:
logger
.
info
(
"
Cannot access {}. However, it might be needed for
"
...
...
@@ -610,7 +610,8 @@ carefully and if the changes are ok, click on the following link:
logger
.
info
(
"
Inserting {} Records...
"
.
format
(
len
(
missing_identifiables
)))
guard
.
safe_insert
(
missing_identifiables
,
unique
=
False
)
guard
.
safe_insert
(
missing_identifiables
,
unique
=
False
,
flags
=
{
"
force-missing-obligatory
"
:
"
ignore
"
})
except
Exception
as
e
:
DataModelProblems
.
evaluate_exception
(
e
)
...
...
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