mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Deactivate database analyzer if user does not use sqlite
This commit is contained in:
parent
e7de812948
commit
5a16d5a512
|
@ -93,7 +93,12 @@ class FreqaiDataKitchen:
|
||||||
if self.live:
|
if self.live:
|
||||||
db_url = self.config.get('db_url', None)
|
db_url = self.config.get('db_url', None)
|
||||||
self.database_path = Path(db_url)
|
self.database_path = Path(db_url)
|
||||||
self.database_name = Path(*self.database_path.parts[1:])
|
if 'sqlite' not in self.database_path.parts[0]:
|
||||||
|
self.database_path = None
|
||||||
|
logger.warning('FreqAI database analyzer only available for sqlite dbs. '
|
||||||
|
' FreqAI will still run, but user cannot use database analyzer.')
|
||||||
|
else:
|
||||||
|
self.database_name = Path(*self.database_path.parts[1:])
|
||||||
|
|
||||||
self.trade_database_df: DataFrame = pd.DataFrame()
|
self.trade_database_df: DataFrame = pd.DataFrame()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user