MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

HISTORY_DUMP from config

Open thomas0369 opened this issue 9 years ago • 1 comments

Hello,

HISTORY_DUMP = "www/history.json" is defined static in code. And when I'm changing the name of www folder, the following error is given:

Short higher: 2017-09-17 14:10:52 Error Traceback (most recent call last): File "/opt/poloniexlendingbot/lendingbot.py", line 95, in PluginsManager.after_lending() File "/opt/poloniexlendingbot/modules/PluginsManager.py", line 47, in after_lending plugin.after_lending() File "/opt/poloniexlendingbot/plugins/Charts.py", line 33, in after_lending self.dump_history() File "/opt/poloniexlendingbot/plugins/Charts.py", line 63, in dump_history with open(HISTORY_DUMP, "w") as hist: IOError: [Errno 2] No such file or directory: 'www/history.json'

Could you please add "historyfile" to config file like it is done for jsonfile?

jsonfile = www-myown/botlog.json

Thanks!

Best regards,

Thomas

thomas0369 avatar Sep 17 '17 12:09 thomas0369

@MoonMaker Please test out the linked PR please.

utdrmac avatar Sep 17 '17 17:09 utdrmac