core: tsdoc.startAt setting

This commit is contained in:
undefined committed 2022-06-03 12:00:35 +08:00
1 parent e6b3b5c530
commit 5bbc48d4dd
7 files changed
+7 -6

No files matched your search

@@ -4,5 +4,5 @@
{% endmacro %}
{% macro render_duration(tdoc) %}
{{ ((tdoc.endAt.getTime() - tdoc.beginAt.getTime()) /1000 / 3600)|round(1) }}
{{ tdoc.duration|round(1) if tdoc.duration else ((tdoc.endAt.getTime() - tdoc.beginAt.getTime()) /1000 / 3600)|round(1) }}
{% endmacro %}