From 4048cfb3e876f608505edc34569f6ca497b5d559 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 11 Apr 2020 21:20:02 -0400 Subject: [PATCH] Update node.py --- lbry/wallet/orchstr8/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/orchstr8/node.py b/lbry/wallet/orchstr8/node.py index be8ff6116..8c6973e22 100644 --- a/lbry/wallet/orchstr8/node.py +++ b/lbry/wallet/orchstr8/node.py @@ -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({