diff --git a/spug_api/apps/home/views.py b/spug_api/apps/home/views.py index cb117d9..7766efd 100644 --- a/spug_api/apps/home/views.py +++ b/spug_api/apps/home/views.py @@ -45,7 +45,7 @@ def get_request(request): data = {x.id: {'name': x.name, 'count': 0} for x in App.objects.all()} for req in DeployRequest.objects.filter(created_at__gt=s_date, created_at__lt=e_date): data[req.deploy.app_id]['count'] += 1 - data = sorted(data.values(), key=lambda x: x['count'], reverse=True)[:5] + data = sorted(data.values(), key=lambda x: x['count'], reverse=True)[:10] return json_response(data) return json_response(error=error) diff --git a/spug_web/src/pages/home/RequestTop.js b/spug_web/src/pages/home/RequestTop.js index 6847cc8..a437fb1 100644 --- a/spug_web/src/pages/home/RequestTop.js +++ b/spug_web/src/pages/home/RequestTop.js @@ -50,7 +50,7 @@ export default function () { } return ( - handleClick('day')}>今日