Unverified Commit c264dd86 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

write to productive database tables


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 820245d1
Pipeline #16071 passed with stages
in 4 minutes and 45 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment