def price():
predictions = Prediction.query(
ndb.AND(Prediction.outcome == "UNKNOWN", Prediction.resolved == False)).fetch()
input_date = datetime.datetime.now()
for p in predictions:
price = Price(prediction_id=p.key,
date=input_date,
value=p.GetPriceByPredictionId())
price.put()
评论列表
文章目录