fix debug/about response

This commit is contained in:
hay-kot 2021-05-02 15:03:39 -08:00
commit e81671821f
4 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,7 @@
"download-recipe-json": "Download Recipe JSON",
"not-demo": "Not Demo",
"production": "Production",
"sqlite-file": "SQLite File",
"database-url": "Database URL",
"version": "Version"
},
"category": {

View file

@ -79,9 +79,9 @@ export default {
value: debugInfo.dbType,
},
{
name: this.$t("about.sqlite-file"),
name: this.$t("about.database-url"),
icon: "mdi-file-cabinet",
value: debugInfo.sqliteFile,
value: debugInfo.dbUrl,
},
{
name: this.$t("about.default-group"),
@ -93,5 +93,3 @@ export default {
},
};
</script>
<style lang="scss" scoped></style>

View file

@ -18,6 +18,7 @@ async def get_debug_info(current_user=Depends(get_current_user)):
demo_status=settings.IS_DEMO,
api_port=settings.API_PORT,
api_docs=settings.API_DOCS,
db_type=settings.DB_ENGINE,
db_url=settings.DB_URL,
default_group=settings.DEFAULT_GROUP,
)

View file

@ -1,4 +1,5 @@
from pathlib import Path
from fastapi_camelcase import CamelModel
@ -11,5 +12,6 @@ class AppInfo(CamelModel):
class DebugInfo(AppInfo):
api_port: int
api_docs: bool
db_type: str
db_url: Path
default_group: str