Added comment

This commit is contained in:
Jamie Hardt
2021-12-24 12:46:44 -08:00
parent 6c76827f42
commit de48bcfe24

View File

@@ -94,6 +94,9 @@ def make_doc_template(page_size, filename, document_title,
def time_format(mins, zero_str="-"): def time_format(mins, zero_str="-"):
"""
Formats a duration `mins` into a string
"""
if mins == 0. and zero_str is not None: if mins == 0. and zero_str is not None:
return zero_str return zero_str
elif mins < 60.: elif mins < 60.: