Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 07d3a4420c | |||
| 2c3c2d6acf | |||
| afc663844b |
@@ -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()"
|
||||
|
||||
@@ -1027,7 +1027,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)
|
||||
|
||||
Reference in New Issue
Block a user