Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,9 +254,9 @@ def nasa_sdo_images(obj,size,date1,date2):
|
|
254 |
if int(date2[6:8])-int(date1[6:8]) >0:
|
255 |
return ("<div style='font-size:xxx-large'>Reduce Timespan to 24 hours</div>")
|
256 |
|
257 |
-
in_year="
|
258 |
-
in_month="
|
259 |
-
in_day="
|
260 |
file_name="DATE_IDENT_SIZE_TOOL.jpg"
|
261 |
sdo_source_format = f"https://sdo.gsfc.nasa.gov/assets/img/browse/{in_year}/{in_month}/{in_day}/"
|
262 |
get_url=sdo_source_format
|
|
|
254 |
if int(date2[6:8])-int(date1[6:8]) >0:
|
255 |
return ("<div style='font-size:xxx-large'>Reduce Timespan to 24 hours</div>")
|
256 |
|
257 |
+
in_year=f"{date2[0:4]}"
|
258 |
+
in_month=f"{date2[4:6]}"
|
259 |
+
in_day=f"{date2[6:8]}"
|
260 |
file_name="DATE_IDENT_SIZE_TOOL.jpg"
|
261 |
sdo_source_format = f"https://sdo.gsfc.nasa.gov/assets/img/browse/{in_year}/{in_month}/{in_day}/"
|
262 |
get_url=sdo_source_format
|