Files
TJWaterServerBinary/app/services/network_import.py
T
jiang fa188af0b1 refactor(db)!: adopt project-routed pooled databases
Reorganize WNDB by responsibility and remove legacy scheme endpoints.\n\nRoute analysis and time-series access through project pools, preserve transactional realtime replacement, and refresh GIS materialized views after writes.\n\nAdd database architecture documentation, live pooling coverage, API contract updates, and executable container verification.\n\nBREAKING CHANGE: legacy scheme APIs and flat app.native.wndb module imports are removed.
2026-08-25 18:35:05 +08:00

7 lines
220 B
Python

from app.services.tjnetwork import read_inp
def network_update(file_path: str, project_code: str) -> None:
"""Replace one project's hydraulic model from an EPANET INP file."""
read_inp(project_code, file_path)