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