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
c264dd86
Unverified
Commit
c264dd86
authored
Oct 23, 2020
by
Sebastian Schüpbach
Browse files
write to productive database tables
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
820245d1
Pipeline
#16071
passed with stages
in 4 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/MediametadataToDB.py
View file @
c264dd86
...
...
@@ -101,13 +101,13 @@ def _create_sql_stmt(table_name, record, fields):
def
_create_entities_entry
(
record
,
mariadbCursor
):
fields
=
[
'sig'
,
'uri'
]
sqlStmt
=
_create_sql_stmt
(
'entities
_me
'
,
record
,
fields
)
sqlStmt
=
_create_sql_stmt
(
'entities'
,
record
,
fields
)
mariadbCursor
.
execute
(
sqlStmt
)
def
_create_metadata_entry
(
record
,
mariadbCursor
):
fields
=
[
'sig'
,
'mimetype'
,
'height'
,
'width'
,
'duration'
,
'type'
]
sqlStmt
=
_create_sql_stmt
(
'metadata
_me
'
,
record
,
fields
)
sqlStmt
=
_create_sql_stmt
(
'metadata'
,
record
,
fields
)
mariadbCursor
.
execute
(
sqlStmt
)
...
...
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