Убрал ненужную обработку Benefits

This commit is contained in:
Григорич 2023-06-06 11:50:22 +03:00
parent b5c046ea25
commit fadb275242

View File

@ -71,13 +71,6 @@ class ApiExtractor:
for key, value in class_attrs.items(): for key, value in class_attrs.items():
if key in res: if key in res:
abitr[key] = res[key]['VALUE'] abitr[key] = res[key]['VALUE']
if res['BENEFITS']['VALUE'] != '-' or res['BENEFITS2']['VALUE'] != '-':
if res['BENEFITS']['VALUE'] != '-':
abitr['BENEFITS'] = res['BENEFITS']['VALUE']
abitr['PRIVILEGES_QUESTION'] = 2
if res['BENEFITS2']['VALUE'] != '-':
abitr['BENEFITS'] = res['BENEFITS2']['VALUE']
abitr['PRIVILEGES_QUESTION'] = 1
abitrs.append(Abitr(**{key: value for key, value in abitr.items()})) abitrs.append(Abitr(**{key: value for key, value in abitr.items()}))
if len(abitrs) > 0: if len(abitrs) > 0:
logging.info(f'Получено абитуриентов - {len(abitrs)}') logging.info(f'Получено абитуриентов - {len(abitrs)}')