pre-process minutes
This commit is contained in:
parent
d7c64c875c
commit
a6a91471ba
2 changed files with 9 additions and 9 deletions
|
|
@ -104,16 +104,16 @@ def build_report(model: models.Model, form: FormData):
|
|||
'total_people': form.total_people,
|
||||
'infected_people': form.infected_people,
|
||||
'activity_type': form.activity_type,
|
||||
'activity_start': form.activity_start,
|
||||
'activity_finish': form.activity_finish,
|
||||
'infected_start': 826,
|
||||
'infected_finish': 827,
|
||||
'activity_start': minutes_to_string(form.activity_start),
|
||||
'activity_finish': minutes_to_string(form.activity_finish),
|
||||
'infected_start': minutes_to_string(826),
|
||||
'infected_finish': minutes_to_string(827),
|
||||
'event_type': form.event_type,
|
||||
'single_event_date': form.single_event_date,
|
||||
'recurrent_event_month': form.recurrent_event_month,
|
||||
'lunch_option': form.lunch_option,
|
||||
'lunch_start': form.lunch_start,
|
||||
'lunch_finish': form.lunch_finish,
|
||||
'lunch_start': minutes_to_string(form.lunch_start),
|
||||
'lunch_finish': minutes_to_string(form.lunch_finish),
|
||||
'coffee_breaks': form.coffee_breaks,
|
||||
'coffee_duration': form.coffee_duration,
|
||||
'coffee_times': [['00:00','00:00'], ['00:00','00:00'], ['00:00','00:00'], ['00:00','00:00']],
|
||||
|
|
|
|||
|
|
@ -70,11 +70,11 @@
|
|||
{% endif %}
|
||||
</p></li>
|
||||
<ul>
|
||||
<li><p class="data_subtext">Start time: {{ form.minutes_to_string(activity_start) }}    End time: {{ form.minutes_to_string(activity_finish) }}</p></li>
|
||||
<li><p class="data_subtext">Start time: {{ activity_start }}    End time: {{ activity_finish }}</p></li>
|
||||
</ul>
|
||||
<li><p class="data_text">Exposure time (presence of infected person):</p></li>
|
||||
<ul>
|
||||
<li><p class="data_subtext">Start time: {{ form.minutes_to_string(infected_start) }}    End time: {{ form.minutes_to_string(infected_finish) }}</p></li>
|
||||
<li><p class="data_subtext">Start time: {{ infected_start }}    End time: {{ infected_finish }}</p></li>
|
||||
</ul>
|
||||
{% if event_type == "single_event"%}
|
||||
<li><p class="data_text">Single event on {{ single_event_date }}</p></li>
|
||||
|
|
@ -91,7 +91,7 @@
|
|||
{% if lunch_option%}
|
||||
Yes</li>
|
||||
<ul>
|
||||
<li> Start: {{ form.minutes_to_string(lunch_start) }}    End: {{ form.minutes_to_string(lunch_finish) }}</p></li>
|
||||
<li> Start: {{ lunch_start }}    End: {{ lunch_finish }}</p></li>
|
||||
</ul>
|
||||
{% else%}
|
||||
No</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue