Skip to content

Commit

Permalink
allow ERA database to be non existent
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyRogers committed Jan 3, 2024
1 parent b3287d5 commit ed1604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emgena/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Meta(StudyAbstract.Meta):
# the PUBLIC SYNONYM (according to ENA) and it's not working ATM
# we were advised to prefix the views and this is the simplest way.
# The short-term plan is to remove the dependency of ENA databases
_prefix_workaround = settings.DATABASES['era'].get('ERA_TABLESPACE_PREFIX', 'ERA\".\"')
_prefix_workaround = settings.DATABASES.get('era', {}).get('ERA_TABLESPACE_PREFIX', 'ERA\".\"')
db_table = f'{_prefix_workaround}V_MGP_RUN_STUDY'


Expand Down

0 comments on commit ed1604b

Please sign in to comment.