From 3b71c8d533be6bfaf583ac09645dd5fd1e61b18a Mon Sep 17 00:00:00 2001 From: Andy Townsend Date: Sun, 27 May 2018 17:33:42 +0100 Subject: [PATCH] Change API URL from http to https. --- osmhm_site/views/key_watch.py | 2 +- osmhm_site/views/security.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osmhm_site/views/key_watch.py b/osmhm_site/views/key_watch.py index aee8c47..1c570e9 100644 --- a/osmhm_site/views/key_watch.py +++ b/osmhm_site/views/key_watch.py @@ -41,7 +41,7 @@ def key_watch(request): objects[event.username][event.key][event.value] = 0 if event.changeset not in changesets[event.username][event.key][event.value]: changesets[event.username][event.key][event.value].append(event.changeset) - changeset_strs[event.username][event.key][event.value] += ('%s (%s), ' % (str(event.changeset), str(event.changeset), str(event.timestamp))) + changeset_strs[event.username][event.key][event.value] += ('%s (%s), ' % (str(event.changeset), str(event.changeset), str(event.timestamp))) objects[event.username][event.key][event.value] += 1 for event in history: diff --git a/osmhm_site/views/security.py b/osmhm_site/views/security.py index b15ce2e..a7d53d5 100644 --- a/osmhm_site/views/security.py +++ b/osmhm_site/views/security.py @@ -23,7 +23,7 @@ ACCESS_TOKEN_URL = '%s/access_token' % BASE_URL AUTHORIZE_URL = '%s/authorize' % BASE_URL -USER_DETAILS_URL = 'http://api.openstreetmap.org/api/0.6/user/details' +USER_DETAILS_URL = 'https://api.openstreetmap.org/api/0.6/user/details' consumer = oauth.Consumer(CONSUMER_KEY, CONSUMER_SECRET)