from flask import Blueprint, json, jsonify, current_app, request from app.blueprints.incident_gen5.service import ( aggregate_and_sort_incidents, aggregate_line_list, get_logging_list, process_incident_data, ) from app.services.remote_service import DatabricksQuery from app.utils import convert_incident_time_format incident_bp = Blueprint("incident", __name__)