diff --git a/app/views.py b/app/views.py index a7e8860..3d646b4 100644 --- a/app/views.py +++ b/app/views.py @@ -233,7 +233,7 @@ def dashboard(): domain_count = Domain.query.count() users = User.query.all() history_number = History.query.count() - history = History.query.order_by("created_on desc").limit(4) + history = History.query.order_by(History.created_on.desc()).limit(4) server = Server(server_id='localhost') statistics = server.get_statistic() if statistics: