updating pulltraffic info for pulling out
This commit is contained in:
@@ -13,5 +13,5 @@ with open(latestFile, 'r') as jsonFile:
|
|||||||
listOfFiles.remove(latestFile)
|
listOfFiles.remove(latestFile)
|
||||||
|
|
||||||
if len(listOfFiles) > 2:
|
if len(listOfFiles) > 2:
|
||||||
for files in listOfFiles:
|
for files in listOfFiles:
|
||||||
os.remove(files)
|
os.remove(files)
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class getTrafficInfo(object):
|
|||||||
f'There are currently'
|
f'There are currently'
|
||||||
f' {self.incidentCount[i]} reported'
|
f' {self.incidentCount[i]} reported'
|
||||||
f' {self.incidentTypes[i]} incidents'
|
f' {self.incidentTypes[i]} incidents'
|
||||||
f' reported on the {self.motorway}'
|
f' on the {self.motorway}'
|
||||||
f' :scream:',
|
f' :scream:',
|
||||||
use_aliases=True,
|
use_aliases=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user