update
This commit is contained in:
parent
7b2a15007d
commit
f2fe470bcc
@ -13,7 +13,7 @@ async def get_configs(
|
||||
db: Session = Depends(get_db)
|
||||
):
|
||||
"""获取所有配置"""
|
||||
configs = db.query(ConfigDB).all()
|
||||
configs = db.query(ConfigDB).order_by(ConfigDB.key.asc()).all()
|
||||
|
||||
# 转换为数组格式
|
||||
config_list = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user