use in-memory db for dry_run

This commit is contained in:
gcarq 2017-11-09 20:26:52 +01:00
parent 86501b43c0
commit a0fa6abcdc

View File

@ -29,7 +29,7 @@ def init(config: dict, db_url: Optional[str] = None) -> None:
_CONF.update(config)
if not db_url:
if _CONF.get('dry_run', False):
db_url = 'sqlite:///tradesv3.dry_run.sqlite'
db_url = 'sqlite://'
else:
db_url = 'sqlite:///tradesv3.sqlite'