feat: adjust Routes page by adding ABS trip count, RT trip count and RT trip part column
This commit is contained in:
parent
dc74a3d241
commit
1ad937b77e
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue