changeset 9439eb0644f5 in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=9439eb0644f5
description:
Shuffle copy of providers list
issue11710
review413561011
diffstat:
app.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 7d5684f113ea -r 9439eb0644f5 app.py
--- a/app.py Wed Sep 14 22:31:26 2022 +0200
+++ b/app.py Wed Sep 14 22:31:47 2022 +0200
@@ -905,8 +905,9 @@
@cache.cached(key_prefix=cache_key_prefix_view, query_string=True)
@add_links(PRECONNECT_HEADERS + JS_LINK_HEADERS + CSS_LINK_HEADERS)
def service_providers():
- shuffle(PROVIDERS)
- return render_template('service_providers.html', providers=PROVIDERS)
+ providers = PROVIDERS.copy()
+ shuffle(providers)
+ return render_template('service_providers.html', providers=providers)
@app.route('/services.html', endpoint='service_providers-alt')