Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
Media Metadata Indexer
Commits
6d692ecb
Unverified
Commit
6d692ecb
authored
Nov 06, 2020
by
Sebastian Schüpbach
Browse files
fix flake8 issues
parent
91272962
Pipeline
#16753
passed with stages
in 4 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/MediametadataToDB.py
View file @
6d692ecb
...
...
@@ -224,7 +224,8 @@ def _get_access_status(graph):
def
_get_record_id
(
graph
):
for
resource
in
graph
:
if
'@type'
in
resource
and
resource
[
'@type'
]
==
'https://www.ica.org/standards/RiC/ontology#Record'
:
if
'@type'
in
resource
and
resource
[
'@type'
]
==
\
'https://www.ica.org/standards/RiC/ontology#Record'
:
return
resource
[
'@id'
]
if
'@id'
in
resource
else
None
...
...
@@ -331,7 +332,8 @@ class MediametadataToDB:
_get_values_from_thumbnail_object
,
access_status
)
else
:
logging
.
info
(
f
'Ignoring record
{
record_id
}
since access of digitalObject is
{
access_status
}
'
)
logging
.
info
(
f
'Ignoring record
{
record_id
}
since'
+
f
' access of digitalObject is
{
access_status
}
'
)
reporter
.
send_message
(
record_id
,
"SUCCESS"
,
"Ignoring record since access of "
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment