-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/poc #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/poc #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 39 out of 44 changed files in this pull request and generated 1 comment.
Files not reviewed (5)
- .env.example: Language not supported
- .python-version: Language not supported
- Dockerfile: Language not supported
- Makefile: Language not supported
- app/diagram/arch.dio: Language not supported
if not os.path.exists("visualizations"): | ||
os.makedirs("visualizations") | ||
vis_path = "visualizations/analysis_result.html" | ||
results.get("plotly_graph").write_html(vis_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both the SQL and visualization agents use the same file name for saving HTML visualizations. Consider using unique file names (e.g., by appending a timestamp or unique identifier) to prevent potential file conflicts during concurrent executions.
if not os.path.exists("visualizations"): | |
os.makedirs("visualizations") | |
vis_path = "visualizations/analysis_result.html" | |
results.get("plotly_graph").write_html(vis_path) | |
if not os.path.exists("visualizations"): | |
os.makedirs("visualizations") | |
unique_id = datetime.now().strftime("%Y%m%d%H%M%S%f") # Generate a timestamp-based unique ID | |
vis_path = f"visualizations/analysis_result_{unique_id}.html" | |
results.get("plotly_graph").write_html(vis_path) |
Copilot uses AI. Check for mistakes.
No description provided.