ソースを参照

[Feature] #8 geolocation

ThiBuff 7 年 前
コミット
4f65107f20
1 ファイル変更3 行追加2 行削除
  1. 3 2
      kalliope/signals/geolocation/geolocation.py

+ 3 - 2
kalliope/signals/geolocation/geolocation.py

@@ -17,7 +17,7 @@ class Geolocation(Thread):
 
     def run(self):
         logger.debug("[Geolocalisation] Loading ...")
-        self.list_synapses_with_geolocalion = self._get_list_synapse_with_geolocation(self.brain)
+        self.list_synapses_with_geolocalion = self._get_list_synapse_with_geolocation(brain=self.brain)
 
     @classmethod
     def _get_list_synapse_with_geolocation(cls, brain):
@@ -31,11 +31,12 @@ class Geolocation(Thread):
             for signal in synapse.signals:
                 # if the signal is an event we add it to the task list
                 if signal.name == "geolocation":
-                    if not cls._check_geolocation(signal.parameters):
+                    if not cls._check_geolocation(parameters=signal.parameters):
                         logger.debug("[Geolocation] The signal is missing mandatory parameters, check documentation")
                     else:
                         yield synapse
 
+
     @staticmethod
     def _check_geolocation(parameters):
         """