forked from LBRYCommunity/lbry-sdk
Update node.py
This commit is contained in:
parent
8b7b284c0d
commit
4048cfb3e8
1 changed files with 2 additions and 2 deletions
|
@ -131,10 +131,10 @@ class WalletNode:
|
|||
db = 'sqlite:///'+os.path.join(self.data_path, self.ledger_class.get_id(), 'blockchain.db')
|
||||
elif db_driver == 'postgres':
|
||||
db_name = f'lbry_test_{self.port}'
|
||||
meta_db = Database(f'postgres:///postgres')
|
||||
meta_db = Database(f'postgresql+psycopg2:///postgres')
|
||||
await meta_db.drop(db_name)
|
||||
await meta_db.create(db_name)
|
||||
db = f'postgres:///{db_name}'
|
||||
db = f'postgresql+psycopg2:///{db_name}'
|
||||
else:
|
||||
raise RuntimeError(f"Unsupported database driver: {db_driver}")
|
||||
self.manager = self.manager_class.from_config({
|
||||
|
|
Loading…
Reference in a new issue