将 native/api/ 改名为 native/wndb/,避免与 Web API 层命名冲突
This commit is contained in:
@@ -10,8 +10,8 @@ import logging
|
||||
from typing import Any
|
||||
|
||||
sys.path.append("..")
|
||||
from app.native.api import project
|
||||
from app.native.api import inp_out
|
||||
from app.native.wndb import project
|
||||
from app.native.wndb import inp_out
|
||||
|
||||
|
||||
def _verify_platform():
|
||||
|
||||
@@ -6,7 +6,7 @@ import psycopg
|
||||
from psycopg import sql
|
||||
|
||||
import app.services.project_info as project_info
|
||||
from app.native.api.postgresql_info import get_pgconn_string
|
||||
from app.native.wndb.postgresql_info import get_pgconn_string
|
||||
from app.services.tjnetwork import read_inp
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import pandas as pd
|
||||
import psycopg
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
from app.native.api.postgresql_info import get_pgconn_string
|
||||
from app.native.wndb.postgresql_info import get_pgconn_string
|
||||
|
||||
|
||||
# 2025/03/23
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import numpy as np
|
||||
from app.services.tjnetwork import *
|
||||
from app.native.api.s36_wda_cal import *
|
||||
from app.native.wndb.s36_wda_cal import *
|
||||
|
||||
# from get_real_status import *
|
||||
from datetime import datetime, timedelta
|
||||
@@ -20,7 +20,7 @@ import logging
|
||||
import app.services.globals as globals
|
||||
import uuid
|
||||
import app.services.project_info as project_info
|
||||
from app.native.api.postgresql_info import get_pgconn_string
|
||||
from app.native.wndb.postgresql_info import get_pgconn_string
|
||||
from app.infra.db.timescaledb.internal_queries import (
|
||||
InternalQueries as TimescaleInternalQueries,
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ from math import pi
|
||||
import pytz
|
||||
|
||||
from app.algorithms.api_ex.run_simulation import run_simulation_ex
|
||||
from app.native.api.project import copy_project
|
||||
from app.native.wndb.project import copy_project
|
||||
from app.services.epanet.epanet import Output
|
||||
from app.services.tjnetwork import *
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from typing import Any
|
||||
import app.native.api as api
|
||||
import app.native.wndb as api
|
||||
import app.services.epanet as epanet
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user