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
db6bc073
Unverified
Commit
db6bc073
authored
Dec 18, 2020
by
Sebastian Schüpbach
Browse files
make code compliant with flake8 rules
parent
6cef1e5b
Pipeline
#19197
passed with stages
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/indexer.py
View file @
db6bc073
...
...
@@ -55,10 +55,10 @@ class Indexer:
Insert record in DB
"""
entities_stmt
,
entities_values
=
Indexer
.
_create_sql_stmt
(
'entities'
,
record
,
[
'sig'
,
'uri'
,
'access'
,
'proto'
])
[
'sig'
,
'uri'
,
'access'
,
'proto'
])
metadata_stmt
,
metadata_values
=
Indexer
.
_create_sql_stmt
(
'metadata'
,
record
,
[
'sig'
,
'mimetype'
,
'height'
,
'width'
,
'duration'
,
'type'
])
[
'sig'
,
'mimetype'
,
'height'
,
'width'
,
'duration'
,
'type'
])
try
:
self
.
mariadb_cursor
.
execute
(
entities_stmt
,
entities_values
)
self
.
mariadb_cursor
.
execute
(
metadata_stmt
,
metadata_values
)
...
...
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