oarepo-runtime 1.5.34__py3-none-any.whl → 1.5.35__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oarepo_runtime/services/results.py +22 -0
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/RECORD +7 -7
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.34.dist-info → oarepo_runtime-1.5.35.dist-info}/top_level.txt +0 -0
@@ -34,6 +34,28 @@ class RecordItem(BaseRecordItem):
|
|
34
34
|
class RecordList(BaseRecordList):
|
35
35
|
components = []
|
36
36
|
|
37
|
+
@property
|
38
|
+
def aggregations(self):
|
39
|
+
"""Get the search result aggregations."""
|
40
|
+
try:
|
41
|
+
result = super().aggregations
|
42
|
+
if result is None:
|
43
|
+
return result
|
44
|
+
|
45
|
+
for key in result.keys():
|
46
|
+
if 'buckets' in result[key]:
|
47
|
+
for bucket in result[key]['buckets']:
|
48
|
+
val = bucket['key']
|
49
|
+
label = bucket.get('label', '')
|
50
|
+
|
51
|
+
if not isinstance(val, str):
|
52
|
+
bucket['key'] = str(val)
|
53
|
+
if not isinstance(label, str):
|
54
|
+
bucket['label'] = str(label)
|
55
|
+
return result
|
56
|
+
except AttributeError:
|
57
|
+
return None
|
58
|
+
|
37
59
|
@property
|
38
60
|
def hits(self):
|
39
61
|
"""Iterator over the hits."""
|
@@ -70,7 +70,7 @@ oarepo_runtime/resources/localized_ui_json_serializer.py,sha256=3V9cJaG_e1PMXKVX
|
|
70
70
|
oarepo_runtime/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
71
71
|
oarepo_runtime/services/components.py,sha256=9wt9CmoCFA8Utbb8eNA-Mvzo5LCApHT9zHpWIWZNyXY,1506
|
72
72
|
oarepo_runtime/services/generators.py,sha256=V582uA813AIXnFhzqUwakmDgBOI1SQe3XZeJtUXNbwM,872
|
73
|
-
oarepo_runtime/services/results.py,sha256=
|
73
|
+
oarepo_runtime/services/results.py,sha256=ocEXdTl1Gdu-OmAkmB98Yf5t4IwsbESDf1r3GV73FTg,2706
|
74
74
|
oarepo_runtime/services/search.py,sha256=ywfwGH7oAM44WeOSjlIsY_qoCMZJ1TlTLd_NgE2ow3Y,5296
|
75
75
|
oarepo_runtime/services/config/__init__.py,sha256=SCqww5sV8qh3gmev6TE8EyJbD58juIEDCm_7MEHxtSg,440
|
76
76
|
oarepo_runtime/services/config/permissions_presets.py,sha256=zApeA-2DYAlD--SzVz3vq_OFjq48Ko0pe08e4o2vxr4,6114
|
@@ -115,9 +115,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
115
115
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
116
116
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
117
117
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
118
|
-
oarepo_runtime-1.5.
|
119
|
-
oarepo_runtime-1.5.
|
120
|
-
oarepo_runtime-1.5.
|
121
|
-
oarepo_runtime-1.5.
|
122
|
-
oarepo_runtime-1.5.
|
123
|
-
oarepo_runtime-1.5.
|
118
|
+
oarepo_runtime-1.5.35.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
119
|
+
oarepo_runtime-1.5.35.dist-info/METADATA,sha256=ov1D4zGmQwPC2LNFD5obBpcphrCt9GsW3dfByS_XNYc,4680
|
120
|
+
oarepo_runtime-1.5.35.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
121
|
+
oarepo_runtime-1.5.35.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
|
122
|
+
oarepo_runtime-1.5.35.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
123
|
+
oarepo_runtime-1.5.35.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|