Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -288,6 +288,7 @@ def nasa_sdo_images(obj,size,date1,date2):
|
|
| 288 |
soup = bs4.BeautifulSoup(feed1.content, 'html.parser')
|
| 289 |
#print(soup)
|
| 290 |
anchor_elements = soup.find_all('a')
|
|
|
|
| 291 |
for element in anchor_elements:
|
| 292 |
href=element.get('href')
|
| 293 |
if href.endswith('.jpg'):
|
|
|
|
| 288 |
soup = bs4.BeautifulSoup(feed1.content, 'html.parser')
|
| 289 |
#print(soup)
|
| 290 |
anchor_elements = soup.find_all('a')
|
| 291 |
+
anchor_elements.sort(reverse=True)
|
| 292 |
for element in anchor_elements:
|
| 293 |
href=element.get('href')
|
| 294 |
if href.endswith('.jpg'):
|