mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
Adjust award-mirror-badge for MirrorManager2
This commit is contained in:
@@ -29,13 +29,13 @@ import fedbadges.utils
|
||||
|
||||
|
||||
def main():
|
||||
url = 'https://admin.fedoraproject.org/mirrormanager/mirroradmins'
|
||||
i url = 'https://admin.fedoraproject.org/mirrormanager/api/mirroradmins'
|
||||
response = requests.get(url)
|
||||
|
||||
if response.status_code != 200:
|
||||
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')
|
||||
if not badge:
|
||||
|
||||
Reference in New Issue
Block a user