diff --git a/api/deps/__pycache__/auth_dependency.cpython-39.pyc b/api/deps/__pycache__/auth_dependency.cpython-39.pyc deleted file mode 100644 index 43986f3..0000000 Binary files a/api/deps/__pycache__/auth_dependency.cpython-39.pyc and /dev/null differ diff --git a/api/deps/__pycache__/role_dependency.cpython-39.pyc b/api/deps/__pycache__/role_dependency.cpython-39.pyc deleted file mode 100644 index e10ee0e..0000000 Binary files a/api/deps/__pycache__/role_dependency.cpython-39.pyc and /dev/null differ diff --git a/api/routers/__pycache__/auth_router.cpython-39.pyc b/api/routers/__pycache__/auth_router.cpython-39.pyc deleted file mode 100644 index 8a08548..0000000 Binary files a/api/routers/__pycache__/auth_router.cpython-39.pyc and /dev/null differ diff --git a/api/routers/__pycache__/system_router.cpython-39.pyc b/api/routers/__pycache__/system_router.cpython-39.pyc deleted file mode 100644 index 4ab7e1b..0000000 Binary files a/api/routers/__pycache__/system_router.cpython-39.pyc and /dev/null differ diff --git a/api/routers/__pycache__/upload_file_router.cpython-39.pyc b/api/routers/__pycache__/upload_file_router.cpython-39.pyc deleted file mode 100644 index c212b54..0000000 Binary files a/api/routers/__pycache__/upload_file_router.cpython-39.pyc and /dev/null differ diff --git a/main.py b/main.py index 50a55e9..e3092a9 100644 --- a/main.py +++ b/main.py @@ -39,13 +39,14 @@ async def lifespan(app: FastAPI): app = FastAPI(lifespan=lifespan) + @app.get("/qgis/status") def qgis_status(): try: - from qgis.core import Qgis + version = QgsApplication.qgisVersion() return { "qgis_status": "connected", - "qgis_version": Qgis.QGIS_VERSION + "qgis_version": version } except Exception as e: return {