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
38483610
Commit
38483610
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: inherit syncnode
parent
518d9166
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!167
Sync Graph
Pipeline
#51818
failed
1 year ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/caoscrawler/identifiable_adapters.py
+2
-2
2 additions, 2 deletions
src/caoscrawler/identifiable_adapters.py
src/caoscrawler/sync_node.py
+2
-2
2 additions, 2 deletions
src/caoscrawler/sync_node.py
with
4 additions
and
4 deletions
src/caoscrawler/identifiable_adapters.py
+
2
−
2
View file @
38483610
...
...
@@ -445,8 +445,8 @@ class IdentifiableAdapter(metaclass=ABCMeta):
return
False
appropriate_types
=
[]
appropriate_types
.
extend
(
get_children_of_rt
(
register_identifiable
.
get_property
(
"
is_referenced_by
"
).
value
))
for
rt
in
register_identifiable
.
get_property
(
"
is_referenced_by
"
).
value
:
appropriate_types
.
extend
(
get_children_of_rt
(
rt
))
appropriate_types
=
[
el
.
lower
()
for
el
in
appropriate_types
]
if
"
*
"
in
appropriate_types
:
return
True
...
...
This diff is collapsed.
Click to expand it.
src/caoscrawler/sync_node.py
+
2
−
2
View file @
38483610
...
...
@@ -47,7 +47,7 @@ class TempID(int):
pass
class
SyncNode
:
class
SyncNode
(
db
.
Entity
)
:
"""
represents the information of an Entity as it shall be created in LinkAhead
The following information is taken from an db.Entity object during initialization or when the
...
...
@@ -69,7 +69,7 @@ class SyncNode:
def
__init__
(
self
,
entity
:
db
.
Entity
,
registered_identifiable
:
Optional
[
db
.
RecordType
]
=
None
)
->
None
:
):
# db.Entity properties
self
.
id
:
Union
[
int
,
TempID
,
str
]
=
entity
.
id
self
.
role
=
entity
.
role
...
...
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