Skip to content

Commit

Permalink
Cert Saver, ordered by expire_time (#153)
Browse files Browse the repository at this point in the history
order default by expire_time asc
  • Loading branch information
tinyhare authored Nov 23, 2024
1 parent 3627f8a commit 54439d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions domain_admin/api/certificate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def get_certificate_list():
page = request.json.get('page', 1)
size = request.json.get('size', 10)
keyword = request.json.get('keyword')
order_prop = request.json.get('order_prop') or 'create_time'
order_type = request.json.get('order_type') or 'desc'
order_prop = request.json.get('order_prop') or 'expire_time'
order_type = request.json.get('order_type') or 'asc'

if order_prop not in ['create_time']:
if order_prop not in ['create_time','expire_time']:
raise AppException('params error: order_prop')

if order_type not in ['desc', 'asc']:
Expand Down

0 comments on commit 54439d3

Please sign in to comment.