mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Move init of _config to apiserver parent
This commit is contained in:
parent
0b98f19f2c
commit
516e56bfaa
|
@ -98,7 +98,6 @@ class ApiServer(RPC):
|
|||
"""
|
||||
super().__init__(freqtrade)
|
||||
|
||||
self._config = freqtrade.config
|
||||
self.app = Flask(__name__)
|
||||
self._cors = CORS(self.app,
|
||||
resources={r"/api/*": {
|
||||
|
|
|
@ -79,6 +79,7 @@ class RPC:
|
|||
:return: None
|
||||
"""
|
||||
self._freqtrade = freqtrade
|
||||
self._config: Dict[str, Any] = freqtrade.config
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
|
|
|
@ -75,7 +75,6 @@ class Telegram(RPC):
|
|||
super().__init__(freqtrade)
|
||||
|
||||
self._updater: Updater
|
||||
self._config = freqtrade.config
|
||||
self._init_keyboard()
|
||||
self._init()
|
||||
if self._config.get('fiat_display_currency', None):
|
||||
|
|
|
@ -25,7 +25,6 @@ class Webhook(RPC):
|
|||
"""
|
||||
super().__init__(freqtrade)
|
||||
|
||||
self._config = freqtrade.config
|
||||
self._url = self._config['webhook']['url']
|
||||
|
||||
def cleanup(self) -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user