Andreas Tille pushed to branch master at Debian Blends Team / website

Commits:
2d24dfe5 by Andreas Tille at 2018-03-12T12:28:08+01:00
Get projects of Blends team (as sorted list to somehow get reproducibility of 
results for better debugging)

- - - - -


1 changed file:

- misc/machine_readable/fetch-machine-readable_salsa.py


Changes:

=====================================
misc/machine_readable/fetch-machine-readable_salsa.py
=====================================
--- a/misc/machine_readable/fetch-machine-readable_salsa.py
+++ b/misc/machine_readable/fetch-machine-readable_salsa.py
@@ -24,11 +24,11 @@ BLENDSGROUPS=[ 'Debian 3D Printing Team'
 
 def get_blends_groups():
     blends_groups=[]
-    groups = gl.groups.list(all=True)
+    groups = gl.groups.list(all=True, order_by='name', sort='asc')
     for group in groups:
         # print(group.attributes['name'])
         if group.attributes['name'] in BLENDSGROUPS:
-            blends_groups.append(group.attributes)
+            blends_groups.append(group)
     return blends_groups
 
 # SALSA_TOKEN=os.environ['SALSA_TOKEN']
@@ -37,8 +37,10 @@ gl = gitlab.Gitlab("https://salsa.debian.org";) # , 
private_token=SALSA_TOKEN) # 
 
 blends_groups = get_blends_groups()
 for group in blends_groups:
-    print(group['name'], group['id'], group['path'], group['description'], 
group['full_name'])
-
+    print(group.attributes['name'], group.attributes['id'], 
group.attributes['path']) # , group.attributes['description'], 
group.attributes['full_name'])
+    projects = group.projects.list(all=True, order_by='name', sort='asc')
+    for project in projects:
+        print("   ", project.attributes['name'])
 
 #for project in git.getall(git.getprojects):
 #    print(project['name'], project['path_with_namespace'], project['id'])



View it on GitLab: 
https://salsa.debian.org/blends-team/website/commit/2d24dfe502b94706a996fa79d94c07fc4527e290

---
View it on GitLab: 
https://salsa.debian.org/blends-team/website/commit/2d24dfe502b94706a996fa79d94c07fc4527e290
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to