Skip to content

Commit

Permalink
Replaces postgres:// with postgresql://
Browse files Browse the repository at this point in the history
  • Loading branch information
evankirkiles committed Dec 16, 2022
1 parent 9e6c4fe commit 93b4697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions psiturk/psiturk_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ def load_config(self):
'database_url')
if ('localhost' in database_url) or ('sqlite' in database_url):
raise EphemeralContainerDBError(database_url)

# if found, replace postgres:// with postgresql:// in database
database_url = self.get('Database Parameters', 'database_url')
self.set('Database Parameters', 'database_url', database_url.replace('postgres://', 'postgresql://'))


def get_ad_url(self):
Expand Down

0 comments on commit 93b4697

Please sign in to comment.