add CSV generation example

This commit is contained in:
Trevor Bentley
2023-01-15 02:31:49 +01:00
parent 42870f1c77
commit 84c9f70f22
2 changed files with 38 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
"Repository", "Date", "Hash", "Summary", "Author", "Additions", "Deletions"
{% for repo in repos | sort(attribute="last_ts_utc") | reverse -%}
{% for entry in repo.history -%}
"{{repo.name}}", "{{ts_to_date(ts=entry.ts_utc, tz=entry.ts_offset)}}", "{{entry.short_hash}}", "{{entry.summary | truncate(length=79)}}", "{{entry.author.name}}", {{entry.stats.additions}}, {{entry.stats.deletions}}
{% endfor -%}
{% endfor -%}