Spaces:
Running
Running
Sync from GitHub (tests passed)
Browse files
deep_learning/inference/predictor.py
CHANGED
|
@@ -196,7 +196,7 @@ class TFTPredictor:
|
|
| 196 |
row = (
|
| 197 |
session.query(PriceBar.close)
|
| 198 |
.filter(PriceBar.symbol == symbol)
|
| 199 |
-
.order_by(PriceBar.
|
| 200 |
.first()
|
| 201 |
)
|
| 202 |
return float(row.close) if row else 1.0
|
|
|
|
| 196 |
row = (
|
| 197 |
session.query(PriceBar.close)
|
| 198 |
.filter(PriceBar.symbol == symbol)
|
| 199 |
+
.order_by(PriceBar.date.desc())
|
| 200 |
.first()
|
| 201 |
)
|
| 202 |
return float(row.close) if row else 1.0
|