das-cli 1.0.10__py3-none-any.whl → 1.0.12__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.
Potentially problematic release.
This version of das-cli might be problematic. Click here for more details.
- das/cli.py +1 -0
- das/managers/search_manager.py +14 -9
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/METADATA +1 -1
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/RECORD +8 -8
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/WHEEL +0 -0
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/entry_points.txt +0 -0
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/licenses/LICENSE +0 -0
- {das_cli-1.0.10.dist-info → das_cli-1.0.12.dist-info}/top_level.txt +0 -0
das/cli.py
CHANGED
das/managers/search_manager.py
CHANGED
|
@@ -60,16 +60,21 @@ class SearchManager:
|
|
|
60
60
|
}
|
|
61
61
|
results = self.search_service.search_entries(**search_params)
|
|
62
62
|
|
|
63
|
-
#
|
|
64
|
-
|
|
65
|
-
for result in results
|
|
66
|
-
|
|
63
|
+
# Build user-friendly items list while preserving totalCount
|
|
64
|
+
friendly_items = []
|
|
65
|
+
for result in results.get('items', []):
|
|
66
|
+
entry = result.get('entry', {}) if isinstance(result, dict) else {}
|
|
67
|
+
friendly_item = {}
|
|
67
68
|
for field in entry_fields:
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
display_name = field.get('displayName')
|
|
70
|
+
column_name = field.get('column')
|
|
71
|
+
if display_name and column_name:
|
|
72
|
+
friendly_item[display_name] = entry.get(column_name)
|
|
73
|
+
friendly_items.append(friendly_item)
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
return {
|
|
76
|
+
'items': friendly_items,
|
|
77
|
+
'totalCount': results.get('totalCount', len(friendly_items))
|
|
78
|
+
}
|
|
74
79
|
except Exception as e:
|
|
75
80
|
raise ValueError(f"Search failed: {str(e)}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
das/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
das/app.py,sha256=kKxN4Vn84SA5Ph3zY13avMG2vrUp-ffpdDkhwYR9Bho,1475
|
|
3
|
-
das/cli.py,sha256=
|
|
3
|
+
das/cli.py,sha256=qNtcfu08qsbhKZ2XZ8l10MuG3MLBxOOeOtpo_6ijQ50,45163
|
|
4
4
|
das/ai/plugins/dasai.py,sha256=R0X0Vey_GOAtWoqcloB-NATZFtXB_l5b9dfPXocNIbI,2165
|
|
5
5
|
das/ai/plugins/entries/entries_plugin.py,sha256=Dhv6PrguQj5mzxBW6DlCzkmwucszazLQfzwlp9EhIGk,608
|
|
6
6
|
das/authentication/auth.py,sha256=DTtH66Ft6nuuMe7EYvrr3GqGVEGGxE7GmD2fO7vRv4s,1501
|
|
@@ -13,7 +13,7 @@ das/common/file_utils.py,sha256=-zePjYsj8iRpQssVQMHDK3Mh5q8FooKJCUCKCXKS6_Y,7006
|
|
|
13
13
|
das/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
das/managers/download_manager.py,sha256=NqaLhmjw-4nZq8SVdN0g5MAnbMPEnu-A3A4oXxQ-IZQ,3776
|
|
15
15
|
das/managers/entries_manager.py,sha256=Kc_PN71Bp7VICrxoP9MiDCrUzR7OdUXfX5puDDxtm08,19015
|
|
16
|
-
das/managers/search_manager.py,sha256=
|
|
16
|
+
das/managers/search_manager.py,sha256=kad6-3H-LsYlUVPE7yKEaCuKLpN2w2-eE3Baskg-R-0,4265
|
|
17
17
|
das/services/attributes.py,sha256=78E9f1wNZYxG9Hg5HfX_h1CFmACaMjwD2Y6Ilb7PJGY,2616
|
|
18
18
|
das/services/cache.py,sha256=g-vY51gqGV_1Vpza476PkMqGpuDNo1NbTwQWIIsvO0s,1932
|
|
19
19
|
das/services/downloads.py,sha256=YBDFPmjAQHUK0OUdFprW1Ox81nzpKaJE9xQBJyyEz4Q,3060
|
|
@@ -22,9 +22,9 @@ das/services/entry_fields.py,sha256=x2wUDkKNduj9pf4s56hRo0UW-eBhipkU9gFMEjFw5DA,
|
|
|
22
22
|
das/services/hangfire.py,sha256=hidmVP9yb4znzBaJJRyKawYx7oYaBv5OVL-t0BhvN_A,818
|
|
23
23
|
das/services/search.py,sha256=3X_KPb9fs024FhxoTr4j-xY5ymm5rvvzlekxuh8tLdg,1374
|
|
24
24
|
das/services/users.py,sha256=iNijO2UPIEtcpPy8Tkemdxxym9rYLCUyckQHIQj68W0,795
|
|
25
|
-
das_cli-1.0.
|
|
26
|
-
das_cli-1.0.
|
|
27
|
-
das_cli-1.0.
|
|
28
|
-
das_cli-1.0.
|
|
29
|
-
das_cli-1.0.
|
|
30
|
-
das_cli-1.0.
|
|
25
|
+
das_cli-1.0.12.dist-info/licenses/LICENSE,sha256=4EDhysVgQWBlzo0rdUl_k89s-iVfgCcSa1gUx1TM1vA,1124
|
|
26
|
+
das_cli-1.0.12.dist-info/METADATA,sha256=eppAV031SAs1rIV_5sH-gUxT_QZUU8UDe9svG4p7sEg,10470
|
|
27
|
+
das_cli-1.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
das_cli-1.0.12.dist-info/entry_points.txt,sha256=ZrdMae7NcvogQhzM1zun8E8n_QwYq-LpZvoJCr2_I4g,36
|
|
29
|
+
das_cli-1.0.12.dist-info/top_level.txt,sha256=OJsPEeJyJ2rJlpEn2DTPgbMSvYG-6FeD13_m5qLpw3E,4
|
|
30
|
+
das_cli-1.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|