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