Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
eb7b0b02
Unverified
Commit
eb7b0b02
authored
Nov 10, 2020
by
Sebastian Schüpbach
Browse files
remove logs
parent
3a832f39
Pipeline
#16896
passed with stages
in 4 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/MediametadataToDB.py
View file @
eb7b0b02
...
...
@@ -164,20 +164,6 @@ def _is_directly_fetchable(digital_object_resource):
def
_get_access_status
(
graph
,
record_id
):
for
resource
in
graph
:
logging
.
info
(
resource
)
logging
.
info
(
"type in resource => {}"
.
format
(
'type'
in
resource
))
if
'type'
in
resource
:
logging
.
info
(
"type == 'access' => {}"
.
format
(
resource
[
'type'
]
==
'access'
))
else
:
logging
.
info
(
"type == 'access' => False"
)
logging
.
info
(
"regulates in resource => {}"
.
format
(
'regulates'
in
resource
))
if
'regulates'
in
resource
:
logging
.
info
(
"resource['regulates'].startswith('https://memobase.ch/digital/') => {}"
.
format
(
resource
[
'regulates'
].
startswith
(
'https://memobase.ch/digital/'
)))
else
:
logging
\
.
info
(
"resource['regulates'].startswith('https://memobase.ch/digital/') => False"
)
logging
.
info
(
"name in resource => {}"
.
format
(
'name'
in
resource
))
if
'type'
in
resource
and
resource
[
'type'
]
==
'access'
and
\
'regulates'
in
resource
and
\
resource
[
'regulates'
].
startswith
(
'https://memobase.ch/digital/'
)
and
\
...
...
Write
Preview
Markdown
is supported
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