This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
3
2
[PATCH dispatch.sr.ht] builds: shuffle list of manifests before limiting to first 4
---
dispatchsrht/builds.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dispatchsrht/builds.py b/dispatchsrht/builds.py
index 053f340..62ffd5e 100644
--- a/dispatchsrht/builds.py
+++ b/dispatchsrht/builds.py
@@ -1,5 +1,6 @@
import base64
import json
+import random
import re
import requests
import yaml
@@ -66,6 +67,7 @@ def submit_build(build_tag,
"""
build_urls = []
if len(manifests) > 4:
+ random.shuffle(manifests)
manifests = manifests[:4]
for name, manifest in manifests:
--
2.11.0
manifests is a dict, not a list. See hubsrht/builds.py for an example of
shuffling a dict, and PLEASE test your patches before sending them out.
[dispatch.sr.ht/patches] build success
Thanks!
To git@git.sr.ht:~sircmpwn/dispatch.sr.ht
02378d2..2280641 master -> master