We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1731118 + 446f3fc commit 923f60dCopy full SHA for 923f60d
reports/get_availability_data.py
@@ -9,6 +9,7 @@
9
import os
10
import calendar
11
import time
12
+from urllib.parse import urlparse
13
14
API_URL = 'https://betteruptime.com/api/v2'
15
TOKEN = os.getenv('TOKEN')
@@ -43,7 +44,8 @@ def get_all_monitors():
43
44
while not done:
45
json_results = make_api_call(all_monitors_url)
46
for monitor in json_results['data']:
- if 'https://open-vsx.org' in monitor['attributes']['url']:
47
+ hostname = urlparse(monitor['attributes']['url']).hostname
48
+ if hostname == 'open-vsx.org':
49
all_openvsx_monitors.append(monitor)
50
next_page = json_results['pagination'].get('next')
51
if next_page is None:
0 commit comments