From 29a463dbf0ad8b21fb163d891a3b69b553051391 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 24 Jun 2013 15:15:33 -0400 Subject: [PATCH] [manual] API get_public_streams: Return streams in a dictionary. This way we can return properties of the streams other than just their names in future versions of the API without breaking old clients. The manual step required is to deploy the updated version of sync-public-streams on zmirror.humbughq.com when we deploy this code to prod. (imported from commit 42b86d8daa5729f52c9961dd912c5776a25ab0b4) --- bots/sync-public-streams | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/sync-public-streams b/bots/sync-public-streams index f6d7170..4d03314 100755 --- a/bots/sync-public-streams +++ b/bots/sync-public-streams @@ -27,9 +27,10 @@ def fetch_public_streams(): return None for stream in streams: + stream_name = stream["name"] # Zephyr class names are canonicalized by first applying NFKC # normalization and then lower-casing server-side - canonical_cls = unicodedata.normalize("NFKC", stream).lower().encode("utf-8") + canonical_cls = unicodedata.normalize("NFKC", stream_name).lower().encode("utf-8") if canonical_cls in ['security', 'login', 'network', 'ops', 'user_locate', 'mit', 'hm_ctl', 'hm_stat', 'zephyr_admin', 'zephyr_ctl']: