Skip to content

Commit

Permalink
fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Feb 11, 2023
1 parent 1561246 commit c2113ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ def get_recommend(self, data):
# 参数
params = data.get("params") or {}
# 排序
sort = params.get("sort") or "U"
sort = params.get("sort") or "T"
# 选中的分类
tags = params.get("tags") or ""
# 过滤参数
Expand Down
1 change: 1 addition & 0 deletions web/templates/macro/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
{% for Option in FieldAttr.options %}
{% if Option.value == Params.get(FieldId) %}
{{ Option.name }}
{% break %}
{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit c2113ce

Please sign in to comment.