feat: adjust Routes page by adding ABS trip count, RT trip count and RT trip part column

This commit is contained in:
dancingCycle 2024-01-11 22:11:54 +01:00
parent dc74a3d241
commit 1ad937b77e
2 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,9 @@ export default function AgencyPerDayTableEntries ({array}) {
<td>{item.agency_id}</td>
<td>{item.route_id}</td>
<td>{item.route_short_name}</td>
<td>{item.trip_id}</td>
<td>{item.rt_part}</td>
<td>{item.trip_id === 0 ? 0 : ((item.rt_part / item.trip_id) * 100).toFixed(2)}</td>
<td>{item.timestamp_pgsql}</td>
</tr>
);

View File

@ -18,7 +18,10 @@ export default function AgencyPerDayTable ({array, title}){
<th>agency_id</th>
<th>route_id</th>
<th>route_short_name</th>
<th>timestamp_pgsql</th>
<th>ABS trip count</th>
<th>RT trip count</th>
<th>RT trip part</th>
<th>latest RT timestamp</th>
</tr>
</thead>
<tbody>