瀏覽代碼

[Fix] country on openweathermap

monf 8 年之前
父節點
當前提交
9cf070e5f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      neurons/openweathermap/Openweathermap.py

+ 1 - 1
neurons/openweathermap/Openweathermap.py

@@ -12,7 +12,7 @@ class Openweathermap(NeuronModule):
         location = kwargs.get('location', None)
         lang = kwargs.get('lang', 'en')
         temp_unit = kwargs.get('temp_unit', 'celsius')
-        country = kwargs.get('country', 'US')
+        country = kwargs.get('country', None)
 
         if api_key is None:
             raise NotImplementedError("OpenWeatherMap neuron needs an api_key")