Fix wrong file name
This commit is contained in:
parent
9283904a63
commit
52601d7889
|
@ -15,7 +15,7 @@ def getMap(mapLocation, icao):
|
||||||
|
|
||||||
# wb mode is stand for write binary mode
|
# wb mode is stand for write binary mode
|
||||||
file_name = icao + "_map.png"
|
file_name = icao + "_map.png"
|
||||||
f = open('map.png', 'wb')
|
f = open(file_name, 'wb')
|
||||||
|
|
||||||
# r.content gives content,
|
# r.content gives content,
|
||||||
# in this case gives image
|
# in this case gives image
|
||||||
|
|
Loading…
Reference in New Issue