Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1142,7 +1142,7 @@ def fetch_and_store_data():
|
|
| 1142 |
|
| 1143 |
|
| 1144 |
def fetch_and_store_data_market():
|
| 1145 |
-
latest_doc =
|
| 1146 |
if latest_doc and "Reported Date" in latest_doc:
|
| 1147 |
latest_date = latest_doc["Reported Date"]
|
| 1148 |
st.write("Latest Date: ", latest_date)
|
|
|
|
| 1142 |
|
| 1143 |
|
| 1144 |
def fetch_and_store_data_market():
|
| 1145 |
+
latest_doc = market_price_data.find_one(sort=[("Reported Date", -1)])
|
| 1146 |
if latest_doc and "Reported Date" in latest_doc:
|
| 1147 |
latest_date = latest_doc["Reported Date"]
|
| 1148 |
st.write("Latest Date: ", latest_date)
|