Теперь по умолчанию поле со льготами отправляет значение 8
This commit is contained in:
parent
8b55667c94
commit
76fafc90e1
|
@ -73,6 +73,8 @@ class ApiExtractor:
|
|||
for key, value in class_attrs.items():
|
||||
if key in res:
|
||||
abitr[key] = res[key]['VALUE']
|
||||
if abitr['BENEFITS'] == '' or abitr['BENEFITS'] is None:
|
||||
abitr['BENEFITS'] = 8
|
||||
abitrs.append(Abitr(**{key: value for key, value in abitr.items()}))
|
||||
if len(abitrs) > 0:
|
||||
logging.info(f'Получено абитуриентов - {len(abitrs)}')
|
||||
|
|
|
@ -47,7 +47,7 @@ class Abitr(BaseModel):
|
|||
PRIORUTY2: Optional[Any]
|
||||
PRIORUTY3: Optional[Any]
|
||||
PRIVILEGES_QUESTION: Optional[Any]
|
||||
BENEFITS: Optional[Any]
|
||||
BENEFITS: Optional[Any] = 8
|
||||
MOVA_ID: int
|
||||
MATH_EN_ID: int
|
||||
FIZ_ID: int
|
||||
|
|
Loading…
Reference in New Issue
Block a user