Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def fetch_sdo_images(max_images, ident="0745", size="1024by960", tool="ccor1"):
|
|
38 |
for link in links:
|
39 |
print(link)
|
40 |
href = link.get('href')
|
41 |
-
if href and href.endswith(f"_{
|
42 |
# Check if the filename starts with a valid timestamp (YYYYMMDD_HHMMSS)
|
43 |
if len(href) >= 15 and href[:8].isdigit() and href[9:15].isdigit():
|
44 |
image_files.append(href)
|
|
|
38 |
for link in links:
|
39 |
print(link)
|
40 |
href = link.get('href')
|
41 |
+
if href and href.endswith(f"_{size}.jpg"):
|
42 |
# Check if the filename starts with a valid timestamp (YYYYMMDD_HHMMSS)
|
43 |
if len(href) >= 15 and href[:8].isdigit() and href[9:15].isdigit():
|
44 |
image_files.append(href)
|