Use a database URL env var
This commit is contained in:
parent
476481c5f8
commit
77088a8a1b
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class URLDatabase:
|
|||
self.connection = None
|
||||
|
||||
def __enter__(self):
|
||||
self.connection = connect(user=os.environ["USER"])
|
||||
self.connection = connect(os.environ["DATABASE_URL"])
|
||||
self.connection.__enter__()
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue