completed receiveFromSQS.py
This commit is contained in:
@@ -177,13 +177,16 @@ class getTrafficInfo(object):
|
||||
use_aliases=True,
|
||||
)
|
||||
)
|
||||
self.output.append(self.incidentInformation[0][i][0])
|
||||
try:
|
||||
self.output.append(self.incidentInformation[i][0][0])
|
||||
except IndexError:
|
||||
pass
|
||||
self.output.append(random.choice(self.sarcasticMessage))
|
||||
self.output.append('END')
|
||||
return self
|
||||
|
||||
|
||||
# inst = getTrafficInfo.getTrafficURL('A50').findIncidents() \
|
||||
# .getIncidentInformation().generateOutput()
|
||||
# for i in inst.output:
|
||||
# print(i)
|
||||
inst = getTrafficInfo.getTrafficURL('M62').findIncidents() \
|
||||
.getIncidentInformation().generateOutput()
|
||||
for i in inst.output:
|
||||
print(i)
|
||||
|
||||
Reference in New Issue
Block a user