Create settings options for different sinks
This commit is contained in:
parent
f85342dc2e
commit
9151ab3ba6
|
@ -3,7 +3,7 @@
|
|||
# from json import dumps
|
||||
|
||||
# Project imports
|
||||
# from settings import settings
|
||||
from settings import settings
|
||||
import sinks.fidor
|
||||
import sinks.nordigen
|
||||
import sinks.truelayer
|
||||
|
@ -28,9 +28,12 @@ class Sinks(util.Base):
|
|||
We NEED the other libraries, and we initialise fast, so don't make
|
||||
any race conditions by relying on something that might not be there.
|
||||
"""
|
||||
self.fidor = sinks.fidor.Fidor()
|
||||
self.nordigen = sinks.nordigen.Nordigen(self)
|
||||
self.truelayer = sinks.truelayer.TrueLayer(self)
|
||||
if settings.Fidor.enabled == "1":
|
||||
self.fidor = sinks.fidor.Fidor()
|
||||
if settings.Nordigen.enabled == "1":
|
||||
self.nordigen = sinks.nordigen.Nordigen(self)
|
||||
if settings.TrueLayer.enabled == "1":
|
||||
self.truelayer = sinks.truelayer.TrueLayer(self)
|
||||
# setattr(self.truelayer, "sinks", self)
|
||||
|
||||
def got_transactions(self, subclass, account_id, transactions):
|
||||
|
|
Loading…
Reference in New Issue