We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68e9b3c commit 281da2aCopy full SHA for 281da2a
api_common.py
@@ -11,6 +11,8 @@
11
12
import extensions
13
14
+RENAMED_DEVICES = {"taranis": "thor", "dagda": "zeus"}
15
+
16
@extensions.cache.memoize()
17
def get_builds():
18
try:
@@ -28,6 +30,8 @@ def get_devices_with_builds():
28
30
29
31
32
def get_device_builds(device):
33
+ device = RENAMED_DEVICES.get(device, device)
34
35
builds = get_builds()
36
if device not in builds:
37
return []
@@ -93,6 +97,8 @@ def get_devices_data():
93
97
94
98
95
99
def get_device_data(device):
100
101
96
102
devices_data = get_devices_data()
103
104
for device_data in devices_data:
0 commit comments