Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _bin/mkical.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def dtstart(date, time):
for run in sched:
date = datetime.strptime(run['date'], '%Y-%m-%d')
phases = run['plan']
# Maybe something here?
# total_dist = 0
if 'cancelled' in run.keys():
continue
for i in range(len(phases)):
Expand Down
6 changes: 5 additions & 1 deletion _includes/schedule_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<tr>
<th>Date</th>
<th class="text-end">Time</th>
<th>Route (miles)</th>
<th>Routes (miles)</th>
<th>Total mileage</th>
</tr>
</thead>
{% endif %}
Expand Down Expand Up @@ -58,6 +59,9 @@
{% if route.gpx %}
&nbsp; <a href="{{ route.gpx }}" class="gpx-link" title="Download GPX" data-goatcounter-click="download-{{ route.id }}">&#8986;</a>
{% endif %}
{% if forloop.last %}
<td>TODO: fill in total mileage</td>
{% endif %}
</td>
</tr>
{% if plan.notes %}
Expand Down
Loading