Проверка наличия отчёта как процедура
This commit is contained in:
@@ -12,9 +12,8 @@ class InfoRespronse:
|
|||||||
status: bool
|
status: bool
|
||||||
|
|
||||||
def check_report(input_data: dict) -> bool:
|
def check_report(input_data: dict) -> bool:
|
||||||
_sql = sql_provider.get('check_report.sql', input_data)
|
result = procedure(current_app.config['db_config'], 'check_report', tuple(input_data.values()))
|
||||||
result = select_list(current_app.config['db_config'], _sql)
|
if result is None or result['exist'] == 0:
|
||||||
if result is None or result[0]['exist'] == 0:
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user