正在显示
4 个修改的文件
包含
6 行增加
和
3 行删除
| ... | ... | @@ -46,7 +46,7 @@ class Api(ApiTemplate): |
| 46 | 46 | |
| 47 | 47 | query_res = system_session.execute(query_sql).fetchall() |
| 48 | 48 | |
| 49 | - query_count = system_session.execute('select count(distinct {}) from public."{}" {} '.format( | |
| 49 | + query_count = system_session.execute('select count(distinct "{}") from public."{}" {} '.format( | |
| 50 | 50 | column.name,table.name,query |
| 51 | 51 | )).fetchone() |
| 52 | 52 | ... | ... |
| ... | ... | @@ -63,6 +63,7 @@ class Api(ApiTemplate): |
| 63 | 63 | |
| 64 | 64 | url = "{}/API/Service/Image/BuildPyramid".format(para.get("url")) |
| 65 | 65 | response:requests.Response = requests.post(url,data=self.para) |
| 66 | + | |
| 66 | 67 | if not response.json().get("result"): |
| 67 | 68 | raise Exception("由于{},影像服务修改失败!".format(response.json().get("msg"))) |
| 68 | 69 | ... | ... |
| ... | ... | @@ -10,9 +10,9 @@ SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.101:5432/dma |
| 10 | 10 | VACUATE_DB_URI = SQLALCHEMY_DATABASE_URI |
| 11 | 11 | |
| 12 | 12 | #切片引擎 |
| 13 | -tile_engine = "http://172.26.99.160:6060" | |
| 13 | +tile_engine = "http://172.26.99.160:8820" | |
| 14 | 14 | #矢量引擎 |
| 15 | -vector_engine = "http://172.26.99.160:6060" | |
| 15 | +vector_engine = "http://172.26.99.160:8820" | |
| 16 | 16 | |
| 17 | 17 | # 固定配置不需要修改 |
| 18 | 18 | entry_data_thread = 3 | ... | ... |
请
注册
或
登录
后发表评论