We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8d9e6 commit 055c447Copy full SHA for 055c447
SimConnect/RequestList.py
@@ -137,10 +137,17 @@ def json(self):
137
138
class AircraftRequests():
139
def find(self, key):
140
+ index = None
141
+ if ':' in key:
142
+ (keyname, index) = key.split(":", 1)
143
+ key = "%s:index" % (keyname)
144
for clas in self.list:
145
for test in clas.list:
146
if key == test[0]:
- return getattr(clas, key)
147
+ rqest = getattr(clas, key)
148
+ if index is not None:
149
+ rqest.setIndex(index)
150
+ return rqest
151
return None
152
153
def get(self, key):
0 commit comments