Omnibus commited on
Commit
8d86a71
·
verified ·
1 Parent(s): 3ef01ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -254,7 +254,7 @@ def nasa_sdo_images():
254
  anchor_elements = soup.find_all('a')
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)
 
254
  anchor_elements = soup.find_all('a')
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)