правка визуала

This commit is contained in:
2025-12-20 13:07:47 +03:00
parent 1df4f6743a
commit 50daed590a
3 changed files with 29 additions and 9 deletions
BIN
View File
Binary file not shown.
+11
View File
@@ -274,6 +274,7 @@ def api_posts():
if full_name is not None:
vkPost.full_name = full_name
else:
vkPostData["selected_users"] = vkPostData.pop("selectedUsers")
db.session.merge(VkPost(**vkPostData))
db.session.commit()
except Exception as e:
@@ -287,6 +288,7 @@ def api_posts():
endTime = schedulerData.get("endTime", None)
interval_minutes = schedulerData.get("interval_minutes", None)
enabled = schedulerData.get("enabled", None)
if scheduler:
if startTime:
scheduler.start_hour = int(startTime)
if endTime:
@@ -295,6 +297,15 @@ def api_posts():
scheduler.interval_minutes = int(interval_minutes)
if enabled is not None:
scheduler.enabled = enabled
else:
db.session.merge(
PostScheduler(
start_hour=int(startTime),
end_hour=int(endTime),
interval_minutes=int(interval_minutes),
enabled=enabled,
)
)
db.session.commit()
except Exception as e:
logger.error(f"Ошибка при обновлении расписания публикации: {e}")
+10 -1
View File
@@ -17,10 +17,15 @@
/* Таблица сотрудников */
.table-responsive {
max-height: 500px;
height: 100vh;
overflow-y: auto;
}
.col-lg-7 .table-responsive {
scrollbar-width: thin;
}
.table {
margin-bottom: 0;
}
@@ -138,6 +143,10 @@
cursor: pointer;
}
.user-row input:checked {
background-color: rgba(13,110,253,.15);
}
.user-row:hover td {
background-color: rgba(13, 110, 253, 0.05);
}