Omnibus commited on
Commit
0307b0c
·
verified ·
1 Parent(s): 8d86a71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -255,7 +255,7 @@ def nasa_sdo_images():
255
  for element in anchor_elements:
256
  href=element.get('href')
257
  if href.endswith('.jpg'):
258
- ls=href.split()
259
  link_json={'year':ls[0][0:3],'month':ls[0][4:5],'day':ls[0][6:7],'dump':ls[1],'size':ls[2],'obj':ls[3].split('.jpg')[0]}
260
  #print(href)
261
  link_box.append(link_json)
 
255
  for element in anchor_elements:
256
  href=element.get('href')
257
  if href.endswith('.jpg'):
258
+ ls=href.split("_")
259
  link_json={'year':ls[0][0:3],'month':ls[0][4:5],'day':ls[0][6:7],'dump':ls[1],'size':ls[2],'obj':ls[3].split('.jpg')[0]}
260
  #print(href)
261
  link_box.append(link_json)