Advertisement
Mochinov

Untitled

Jan 21st, 2021
721
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for i in attach_list_with_critical_parametrs:
  2.         devices_BO = WristbandBO.objects.filter(user=i.pacient)
  3.         devices_HR = WristbandHR.objects.filter(user=i.pacient)
  4.         if devices_BO.BO < i.critical_value.bo_min or (devices_HR.HR > i.critical_value.pulse_max or devices_HR.HR < i.critical_value.pulse_min):
  5.             list_pacient.append({
  6.                 'person' : i.pacient,
  7.                 'indicators_BO' : devices_BO.BO,
  8.                 'indicators_HR' : devices_HR.HR,
  9.             })
Advertisement
RAW Paste Data Copied
Advertisement