broadfield-dev commited on
Commit
0657f07
·
verified ·
1 Parent(s): 0faa096

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"_{ident}_{tool}_{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)
 
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)