$def with (stats, date) $var title: Imports / $date
$:render_template("admin/menu")

Imports / $date

Summary

$ summary = stats.get_items_summary(date)
Total$sum(summary['counts'].values())
Created$summary['counts'].get('created', 0)
Found$summary['counts'].get('found', 0)
Modified$summary['counts'].get('modified', 0)
Failed$summary['counts'].get('failed', 0)
Pending$summary['counts'].get('pending', 0)

Items

$for row in stats.get_items(date):
# Identifier OL Key Status Error Added Time Imported Time
$loop.index $truncate(row.ia_id, 40) $if row.ol_key: $row.ol_key.split("/")[-1] $else: - $row.status ${row.error or '-'} $row.added_time $row.import_time