Skip to content

Commit 230c62d

Browse files
committed
fix
1 parent 8a7ee57 commit 230c62d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Analysis/templates/Analysis.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ <h4 style="font-size: 1.1em; margin-bottom: 15px;">🖥️ Cluster Live Monitor<
111111

112112
// Pingt den Server jede Sekunde (1000ms) an
113113
logInterval = setInterval(() => {
114-
// Dies ruft die API aus deiner views.py auf, die wir vorher besprochen haben
115-
fetch(`/api/cluster-log/${entryId}/`)
114+
// WICHTIG: Prefix /Analysis/ hinzufügen
115+
fetch(`/Analysis/api/cluster-log/${entryId}/`)
116116
.then(response => response.json())
117117
.then(data => {
118118
if(data.log) {

Lab_Dash/dash_apps/MFP_Dashboard.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
], style={'textAlign': 'center', 'padding': '10px', 'backgroundColor': '#f8f9fa', 'borderBottom': '1px solid #ddd'}),
4040

4141
html.Div(id='ai-analysis-status', style={'padding': '10px', 'textAlign': 'center'}),
42-
html.Div(id='ai-log-output', style={'margin': '10px', 'padding': '10px', 'backgroundColor': '#eef2f5', 'borderRadius': '5px', 'maxHeight': '150px', 'overflowY': 'auto', 'fontFamily': 'monospace', 'fontSize': '12px', 'display': 'none'}),
42+
html.Div(id='ai-log-output-wrapper', style={'margin': '10px', 'padding': '10px', 'backgroundColor': '#eef2f5', 'borderRadius': '5px', 'maxHeight': '150px', 'overflowY': 'auto', 'fontFamily': 'monospace', 'fontSize': '12px', 'display': 'none'}, children=[
43+
html.Div(id='ai-log-output')
44+
]),
4345

4446
dcc.Interval(id='log-interval', interval=2000, n_intervals=0, disabled=True),
4547

@@ -235,7 +237,7 @@ def get_data(entry_id):
235237
# =========================================================
236238

237239
@app.callback(
238-
[Output('ai-analysis-status', 'children'), Output('log-interval', 'disabled'), Output('ai-log-output', 'style')],
240+
[Output('ai-analysis-status', 'children'), Output('log-interval', 'disabled'), Output('ai-log-output-wrapper', 'style')],
239241
[Input('run-ai-btn', 'n_clicks')],
240242
[State('entry-id', 'data')]
241243
)

0 commit comments

Comments
 (0)