final touch
Browse files- app.py +4 -0
- templates/players.html +1 -1
app.py
CHANGED
|
@@ -70,6 +70,10 @@ for player in players:
|
|
| 70 |
|
| 71 |
latest_prediction_entry["prev_value"] /= 10
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
# Add to new list
|
| 74 |
display_players.append(latest_prediction_entry)
|
| 75 |
|
|
|
|
| 70 |
|
| 71 |
latest_prediction_entry["prev_value"] /= 10
|
| 72 |
|
| 73 |
+
latest_prediction_entry["prev_value"] = (
|
| 74 |
+
f"""£{latest_prediction_entry["prev_value"]}m"""
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
# Add to new list
|
| 78 |
display_players.append(latest_prediction_entry)
|
| 79 |
|
templates/players.html
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
<td>{{ player.team }}</td>
|
| 38 |
<td>{{ player.prev_total_points }}</td>
|
| 39 |
<!-- <td>{{ player.prev_total_points }}</td> -->
|
| 40 |
-
<td>
|
| 41 |
<td>{{ player.predicted_score }}</td>
|
| 42 |
<td style="width: 1%; white-space: nowrap;"> <button type="button" class="btn btn-link scroll-to-chart">See more</button> </td>
|
| 43 |
</tr>
|
|
|
|
| 37 |
<td>{{ player.team }}</td>
|
| 38 |
<td>{{ player.prev_total_points }}</td>
|
| 39 |
<!-- <td>{{ player.prev_total_points }}</td> -->
|
| 40 |
+
<td>{{ player.prev_value }}</td>
|
| 41 |
<td>{{ player.predicted_score }}</td>
|
| 42 |
<td style="width: 1%; white-space: nowrap;"> <button type="button" class="btn btn-link scroll-to-chart">See more</button> </td>
|
| 43 |
</tr>
|