Skip to content
Snippets Groups Projects
Commit f34b5192 authored by florian's avatar florian
Browse files

FIX: Add missing `force-missing-obligatory` flag

parent e0b81504
No related branches found
No related tags found
1 merge request!5FIX: Ignore obligatory properties when inserting identifiables
Pipeline #9199 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment