Spaces:
Sleeping
Sleeping
tappyness1
commited on
Commit
•
2bc5c0e
1
Parent(s):
3e082da
fix date update
Browse files- src/pred_plot.py +2 -2
src/pred_plot.py
CHANGED
@@ -259,8 +259,8 @@ def pred_bars(my_date_picker_single, final_table):
|
|
259 |
bar_day.add_trace(go.Bar(x=f4['hour'], y=f4['vehicle'], name='Woodlands-Johor', showlegend=False, marker={'color':c4}),
|
260 |
row=2, col=2)
|
261 |
|
262 |
-
val_d =
|
263 |
-
day_d =
|
264 |
tex = "Predicted 24 Hour Traffic Trend on: " + day_d + ", " + str(val_d)
|
265 |
|
266 |
|
|
|
259 |
bar_day.add_trace(go.Bar(x=f4['hour'], y=f4['vehicle'], name='Woodlands-Johor', showlegend=False, marker={'color':c4}),
|
260 |
row=2, col=2)
|
261 |
|
262 |
+
val_d = my_date_picker_single.strftime("%d %B, %Y")
|
263 |
+
day_d = my_date_picker_single.strftime("%A")
|
264 |
tex = "Predicted 24 Hour Traffic Trend on: " + day_d + ", " + str(val_d)
|
265 |
|
266 |
|