diff options
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/llm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 90d5e1f..f6642c9 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -100,8 +100,8 @@ def get_user_search_records(): (str(token.user.user_id),)) results = [dict(item) for item in cursor.fetchall()] return jsonify(sorted(results, reverse=True, - key=lambda x: datetime.strptime(x.get("created_at"), - '%Y-%m-%d %H:%M:%S'))) + key=lambda x: datetime.strptime(x.get("created_at"), + '%Y-%m-%d %H:%M:%S'))) @gnqa.route("/search/record/<task_id>", methods=["GET"]) |