From addc7fef6bf4fb552983c5b3edd36c91dc888d34 Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Date: Sun, 3 May 2020 22:24:23 +0100 Subject: [PATCH] Update date and add requirements. --- Apixu/README.md | 2 +- Apixu/config.py | 2 +- Apixu/plugin.py | 4 ++-- Apixu/test.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Apixu/README.md b/Apixu/README.md index 7244868..0342b92 100644 --- a/Apixu/README.md +++ b/Apixu/README.md @@ -2,4 +2,4 @@ apixu weather api client Dont forget to: -config supybot.plugins.Apixu.apiKey your_api_key +config supybot.plugins.Apixu.apiKey your_api_key \ No newline at end of file diff --git a/Apixu/config.py b/Apixu/config.py index 9f95de5..25a2b33 100644 --- a/Apixu/config.py +++ b/Apixu/config.py @@ -1,5 +1,5 @@ ### -# Copyright (c) 2019, Pedro de Oliveira +# Copyright (c) 2020, Pedro de Oliveira # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/Apixu/plugin.py b/Apixu/plugin.py index a9dcf44..c52fa65 100644 --- a/Apixu/plugin.py +++ b/Apixu/plugin.py @@ -1,5 +1,5 @@ ### -# Copyright (c) 2019, Pedro de Oliveira +# Copyright (c) 2020, Pedro de Oliveira # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -52,7 +52,7 @@ class Apixu(callbacks.Plugin): self.prepend = "8,12weatherstack" def __do_request(self, action, arguments): - baseurl = "http://api.weatherstack.com/" + baseurl = "https://api.weatherstack.com/" response = requests.get(baseurl + action + "?" + urlencode(arguments)) return json.loads(response.content.decode('utf-8')) diff --git a/Apixu/test.py b/Apixu/test.py index 9da9831..7ed582d 100644 --- a/Apixu/test.py +++ b/Apixu/test.py @@ -1,5 +1,5 @@ ### -# Copyright (c) 2019, Pedro de Oliveira +# Copyright (c) 2020, Pedro de Oliveira # All rights reserved. # # Redistribution and use in source and binary forms, with or without