Adjust award-mirror-badge for MirrorManager2
This commit is contained in:
parent
afce0dc6dc
commit
98ec14df6b
1 changed files with 2 additions and 2 deletions
|
@ -29,13 +29,13 @@ import fedbadges.utils
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
url = 'https://admin.fedoraproject.org/mirrormanager/mirroradmins'
|
i url = 'https://admin.fedoraproject.org/mirrormanager/api/mirroradmins'
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
|
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
raise IOError("Couldn't read the mirrormanager/mirroradmins list.")
|
raise IOError("Couldn't read the mirrormanager/mirroradmins list.")
|
||||||
|
|
||||||
usernames = response.text.split()
|
usernames = response.json()['admins']
|
||||||
|
|
||||||
badge = tahrir.get_badge(badge_id='mirror,-mirror-on-the-wall')
|
badge = tahrir.get_badge(badge_id='mirror,-mirror-on-the-wall')
|
||||||
if not badge:
|
if not badge:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue