stats: Add mapping for ZulipTerminal id to Terminal app.

This commit is contained in:
neiljp (Neil Pilgrim) 2022-04-12 22:50:14 +00:00 committed by Tim Abbott
parent 60e09834a3
commit 08477ed5e9
2 changed files with 4 additions and 0 deletions

View File

@ -621,6 +621,7 @@ class TestMapArrays(ZulipTestCase):
"SomethingRandom": [4, 5, 6],
"ZulipGitHubWebhook": [7, 7, 9],
"ZulipAndroid": [64, 63, 65],
"ZulipTerminal": [9, 10, 11],
}
result = rewrite_client_arrays(a)
self.assertEqual(
@ -635,5 +636,6 @@ class TestMapArrays(ZulipTestCase):
"SomethingRandom": [4, 5, 6],
"GitHub webhook": [7, 7, 9],
"Old Android app": [64, 63, 65],
"Terminal app": [9, 10, 11],
},
)

View File

@ -460,6 +460,8 @@ def client_label_map(name: str) -> str:
return "Old desktop app"
if name == "ZulipElectron":
return "Desktop app"
if name == "ZulipTerminal":
return "Terminal app"
if name == "ZulipAndroid":
return "Old Android app"
if name == "ZulipiOS":