Dateiname bei Graph-Generierung mit Timestamp
This commit is contained in:
@@ -2,6 +2,7 @@ import pandas as pd
|
|||||||
import plotly.graph_objects as go
|
import plotly.graph_objects as go
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
# --- KONFIGURATION & DATEIPFAD ---
|
# --- KONFIGURATION & DATEIPFAD ---
|
||||||
@@ -94,7 +95,8 @@ fig.update_layout(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# --- AUSGABE ---
|
# --- AUSGABE ---
|
||||||
output_filename = "netzwerk_analyse_lokal.html"
|
timestamp = datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
|
||||||
|
output_filename = f"netzwerk_analyse_lokal_{timestamp}.html"
|
||||||
|
|
||||||
fig.write_html(output_filename)
|
fig.write_html(output_filename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user