Alaiy commited on
Commit
c8997bc
·
verified ·
1 Parent(s): 9bfa2d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1142,7 +1142,7 @@ def fetch_and_store_data():
1142
 
1143
 
1144
  def fetch_and_store_data_market():
1145
- latest_doc = collection.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)
 
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)