caimira: inject package version
This commit is contained in:
parent
73bed86bca
commit
c7a5948cd2
3 changed files with 8 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ class Application(tornado.web.Application):
|
|||
settings = dict(
|
||||
debug=True,
|
||||
)
|
||||
super(Application, self).__init__(handlers, **settings)
|
||||
super().__init__(handlers, **settings)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import re
|
|||
|
||||
import numpy as np
|
||||
|
||||
from caimira import __version__ as calculator_version
|
||||
from ..form_validator import FormData, cast_class_fields, time_string_to_minutes
|
||||
from ..defaults import (DEFAULTS, CONFIDENCE_LEVEL_OPTIONS,
|
||||
MECHANICAL_VENTILATION_TYPES, MASK_WEARING_OPTIONS, MONTH_NAMES, VACCINE_BOOSTER_TYPE, VACCINE_TYPE,
|
||||
|
|
@ -559,7 +560,7 @@ def baseline_raw_form_data() -> typing.Dict[str, typing.Union[str, float]]:
|
|||
'mask_type': 'Type I',
|
||||
'mask_wearing_option': 'mask_off',
|
||||
'mechanical_ventilation_type': '',
|
||||
'calculator_version': '4.17.0', #TODO different version for API and calculator form?
|
||||
'calculator_version': calculator_version,
|
||||
'opening_distance': '0.2',
|
||||
'event_month': 'January',
|
||||
'room_heating_option': '0',
|
||||
|
|
|
|||
Loading…
Reference in a new issue