Skip to content

Commit

Permalink
Merge branch 'main' into es_models_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Jul 14, 2021
2 parents 0af9089 + f874c36 commit 03211a3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 74 deletions.
5 changes: 3 additions & 2 deletions ingestion_server/ingestion_server/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,9 @@ def reload_upstream(table, progress=None, finish_time=None):
downstream_cur.execute(copy_data)
downstream_db.commit()
downstream_db.close()
clean_image_data(table)
log.info('Cleaning step finished.')
if table != 'audio':
clean_image_data(table)
log.info('Cleaning step finished.')
downstream_db = database_connect()
with downstream_db.cursor() as downstream_cur:
log.info('Copying finished! Recreating database indices...')
Expand Down
132 changes: 60 additions & 72 deletions openverse-api/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03211a3

Please sign in to comment.