From afc663844bee9b56a143b844d8ceeeb7819b4043 Mon Sep 17 00:00:00 2001 From: spdis Date: Mon, 23 Mar 2026 11:06:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=88=86=E6=9E=90=E7=9A=84500?= =?UTF-8?q?=E9=97=AE=E9=A2=98[0.2.7.9][ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elastic/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elastic/views.py b/elastic/views.py index b2eba6b..8fb674b 100644 --- a/elastic/views.py +++ b/elastic/views.py @@ -1025,7 +1025,7 @@ def analytics_types_view(request): size_int = int(size) if size is not None else 10 except Exception: size_int = 10 - data = es_analytics_types(gte=gte, lte=lte, size=size_int) + data = es_analytics_types(gte=gte, lte=lte, limit=size_int) return JsonResponse({"status": "success", "data": data}) except Exception as e: return JsonResponse({"status": "error", "message": str(e)}, status=500) From 07d3a4420c00984601fcfc59f2d3b0db8269f45f Mon Sep 17 00:00:00 2001 From: spdis Date: Mon, 23 Mar 2026 11:28:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E9=95=9C=E5=83=8F[0.2.7.?= =?UTF-8?q?9][ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5f31582..350f96f 100644 --- a/README.md +++ b/README.md @@ -192,5 +192,6 @@ def get_visible_data(current_user): + 生产环境用于创建数据库结构的临时命令: python manage.py shell -c "from elastic.es_connect import create_index_with_mapping; create_index_with_mapping()"