[sysadmin-bin] Modify the API endpoint and make sure each of the items is converted to a string type



commit da07763d0f5a1c1eedd8ed59e9d706f9439ac159
Author: Andrea Veri <averi redhat com>
Date:   Tue Feb 27 11:44:27 2018 +0100

    Modify the API endpoint and make sure each of the items is converted to a string type

 mail/set-topics-svn-commits-list | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mail/set-topics-svn-commits-list b/mail/set-topics-svn-commits-list
index b98f31b..0c23fae 100755
--- a/mail/set-topics-svn-commits-list
+++ b/mail/set-topics-svn-commits-list
@@ -20,7 +20,7 @@ from Mailman import i18n
 
 def get_gitlab_gnome_org_modules():
     modules = []
-    api_url = 'https://gitlab.gnome.org/api/v4/projects'
+    api_url = 'https://gitlab.gnome.org/api/v4/groups/8/projects'
 
     f = urllib.urlopen(api_url + "?per_page=100")
     if f.headers.gettype() != 'application/json' or f.headers.status != "":
@@ -38,7 +38,7 @@ def get_gitlab_gnome_org_modules():
         f.close()
 
         for project in projects:
-            modules.append(project['path'])
+            modules.append(str(project['path']))
 
     return list(set(modules))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]