added some tests - failing
This commit is contained in:
@@ -60,7 +60,6 @@ def get_metar_data(airportcode,unixtime):
|
||||
if s.ok:
|
||||
doc = etree.fromstring(s.content)
|
||||
lengte = len(doc.xpath('data/METAR/station_id'))
|
||||
print('Lengte ',lengte,int(lengte/2))
|
||||
idnr = int(lengte/2)
|
||||
try:
|
||||
id = doc.xpath('data/METAR/station_id')[idnr].text
|
||||
|
||||
Reference in New Issue
Block a user