feat: celery

This commit is contained in:
2025-05-03 08:25:15 +03:00
parent 166ad0ba2f
commit 44ce626a1b
16 changed files with 456 additions and 200 deletions
+2
View File
@@ -102,6 +102,7 @@ def get_leaks_stats():
conn.close()
@app.route("/")
@app.route("/index.html")
def index():
parser_status = get_parser_status()
leaks_stats = get_leaks_stats()
@@ -120,6 +121,7 @@ def index():
leaks_stats=leaks_stats
)
@app.route("/logs.html")
@app.route("/logs")
def logs():
log_path = '/app/tg_nodes.log'
+9 -12
View File
@@ -99,8 +99,10 @@
padding: 20px;
margin-left: 250px;
transition: margin-left 0.3s ease;
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container.collapsed {
@@ -116,7 +118,7 @@
height: 100%;
object-fit: cover;
z-index: -1;
opacity: 0.8; /* Полупрозрачность видео */
opacity: 0.8;
}
/* Затемнение поверх видео */
@@ -126,23 +128,18 @@
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7); /* Черный полупрозрачный слой */
background: rgba(0, 0, 0, 0.7);
z-index: -1;
}
/* Контейнер для логов */
.logs-container {
position: absolute;
top: 50%;
left: 20px;
transform: translateY(-50%);
width: 40%;
max-width: 600px;
background-color: rgba(46, 46, 46, 0.9); /* Полупрозрачный фон */
width: 90%;
max-width: 800px;
background-color: rgba(46, 46, 46, 0.9);
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(51, 153, 255, 0.5);
z-index: 1;
}
.logs-container h2 {