Skip to content

Commit

Permalink
修复 域名监控/域名列表排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Apr 8, 2024
1 parent 0a76e3c commit 67c81c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ Domain Admin是一个轻量级监控方案,占用系统资源较少。同时

- 预览地址:[https://mouday.github.io/domain-admin-web/](https://mouday.github.io/domain-admin-web/)

本项目采用的是前后端分离模式,前端代码在另外一个仓库。

前端项目地址(请自行解码):aHR0cHM6Ly9naXRodWIuY29tL21vdWRheS9kb21haW4tYWRtaW4td2Vi

或者关注微信公众号:

<img src="https://gitee.com/mouday/domain-admin/raw/master/image/coding-big-tree.jpg" width="300">

回复:`domain-admin-web`,获取完整的前端代码

2、移动端版:

<img src="https://gitee.com/mouday/domain-admin/raw/master/image/screencapture-mini.png" width="220">
Expand Down
4 changes: 2 additions & 2 deletions domain_admin/service/domain_info_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ def get_ordering(order_prop='expire_days', order_type='ascending'):
# order by domain_expire_days
if order_prop == 'domain_expire_days':
if order_type == 'descending':
ordering.append(DomainInfoModel.domain_expire_days.desc())
ordering.append(DomainInfoModel.domain_expire_time.desc())
else:
ordering.append(DomainInfoModel.domain_expire_days.asc())
ordering.append(DomainInfoModel.domain_expire_time.asc())

# order by domain
elif order_prop == 'domain':
Expand Down

0 comments on commit 67c81c7

Please sign in to comment.