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
ef707da8
Commit
ef707da8
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-children
parents
3218c02b
919cd0b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!160
STY: styling
,
!131
Accept references of children
Pipeline
#40926
failed
1 year 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/converters.py
+15
-14
15 additions, 14 deletions
src/caoscrawler/converters.py
with
15 additions
and
14 deletions
src/caoscrawler/converters.py
+
15
−
14
View file @
ef707da8
...
...
@@ -24,29 +24,29 @@
#
from
__future__
import
annotations
from
jsonschema
import
validate
,
ValidationError
import
os
import
re
import
datetime
import
caosdb
as
db
import
json
import
logging
import
os
import
re
import
warnings
from
.utils
import
has_parent
from
.stores
import
GeneralStore
,
RecordStore
from
.structure_elements
import
(
StructureElement
,
Directory
,
File
,
DictElement
,
JSONFile
,
IntegerElement
,
BooleanElement
,
FloatElement
,
NoneElement
,
TextElement
,
TextElement
,
ListElement
)
from
typing
import
List
,
Optional
,
Tuple
,
Union
from
abc
import
ABCMeta
,
abstractmethod
from
string
import
Template
import
yaml_header_tools
from
typing
import
List
,
Optional
,
Tuple
,
Union
import
caosdb
as
db
import
pandas
as
pd
import
logging
import
yaml
import
yaml_header_tools
from
jsonschema
import
ValidationError
,
validate
from
.stores
import
GeneralStore
,
RecordStore
from
.structure_elements
import
(
BooleanElement
,
DictElement
,
Directory
,
File
,
FloatElement
,
IntegerElement
,
JSONFile
,
ListElement
,
NoneElement
,
StructureElement
,
TextElement
)
from
.utils
import
has_parent
# These are special properties which are (currently) treated differently
# by the converters:
...
...
@@ -300,6 +300,7 @@ def create_records(values: GeneralStore, records: RecordStore, def_records: dict
# no matter whether the record existed in the record store or not,
# parents will be added when they aren't present in the record yet:
if
"
parents
"
in
record
:
c_record
.
parents
.
clear
()
for
parent
in
record
[
"
parents
"
]:
# Do the variables replacement:
var_replaced_parent
=
replace_variables
(
parent
,
values
)
...
...
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