Merge branch 'Debug' of ParkSuMin/Cursovaya into main

This commit is contained in:
2024-12-12 08:38:56 +00:00
committed by Gogs
5 changed files with 6 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ def check_report(input_data: dict) -> bool:
db_config = current_app.config["db_config"]
result = procedure(db_config, "check_report", tuple(input_data.values()))
if result is None or result["exist"] == 0:
if result is None or result == 0:
return False
return True

View File

@@ -1,7 +1,7 @@
function check_month(now_month, now_year) {
let selected_month = document.getElementById('month').value;
let selected_year = document.getElementById('year').value;
if (selected_month > now_month && selected_year == now_year) {
if (selected_month > now_month && selected_year == now_year || selected_year > now_year) {
alert('Невозможно сформировать отчет за будущий период!');
return false;
}