Skip to content

Commit

Permalink
fix restore database command
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Aug 19, 2024
1 parent 4df84c4 commit 11b9c2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
wget https://downloads.openmicroscopy.org/images/omero_db_searchengine.zip -P app_data
unzip app_data/omero_db_searchengine.zip -d app_data/
# run restore omero database
python manage.py restore_postgresql_database
python manage.py restore_postgresql_database -s omero1
# run indexing indexing
python manage.py get_index_data_from_database -b False -s omero1
# run tests
Expand Down
4 changes: 2 additions & 2 deletions omero_search_engine/database/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def restore_database(source):
proc = subprocess.Popen(
restore_command,
shell=True,
env={"PGPASSWORD": search_omero_app.config.get("DATABASE_PASSWORD")},
env={"PGPASSWORD": data_source.get("DATABASE").get("DATABASE_PASSWORD")},
)
proc.wait()
except Exception as e:
print("Error, exception happened during dump %s" % (e))
print("Error: exception happened during dump %s" % (e))

0 comments on commit 11b9c2e

Please sign in to comment.