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

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: if full_name is not None:
vkPost.full_name = full_name vkPost.full_name = full_name
else: else:
vkPostData["selected_users"] = vkPostData.pop("selectedUsers")
db.session.merge(VkPost(**vkPostData)) db.session.merge(VkPost(**vkPostData))
db.session.commit() db.session.commit()
except Exception as e: except Exception as e:
@@ -287,6 +288,7 @@ def api_posts():
endTime = schedulerData.get("endTime", None) endTime = schedulerData.get("endTime", None)
interval_minutes = schedulerData.get("interval_minutes", None) interval_minutes = schedulerData.get("interval_minutes", None)
enabled = schedulerData.get("enabled", None) enabled = schedulerData.get("enabled", None)
if scheduler:
if startTime: if startTime:
scheduler.start_hour = int(startTime) scheduler.start_hour = int(startTime)
if endTime: if endTime:
@@ -295,6 +297,15 @@ def api_posts():
scheduler.interval_minutes = int(interval_minutes) scheduler.interval_minutes = int(interval_minutes)
if enabled is not None: if enabled is not None:
scheduler.enabled = enabled 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() db.session.commit()
except Exception as e: except Exception as e:
logger.error(f"Ошибка при обновлении расписания публикации: {e}") logger.error(f"Ошибка при обновлении расписания публикации: {e}")
+10 -1
View File
@@ -17,10 +17,15 @@
/* Таблица сотрудников */ /* Таблица сотрудников */
.table-responsive { .table-responsive {
max-height: 500px; height: 100vh;
overflow-y: auto; overflow-y: auto;
} }
.col-lg-7 .table-responsive {
scrollbar-width: thin;
}
.table { .table {
margin-bottom: 0; margin-bottom: 0;
} }
@@ -138,6 +143,10 @@
cursor: pointer; cursor: pointer;
} }
.user-row input:checked {
background-color: rgba(13,110,253,.15);
}
.user-row:hover td { .user-row:hover td {
background-color: rgba(13, 110, 253, 0.05); background-color: rgba(13, 110, 253, 0.05);
} }