zou 0.20.72__py3-none-any.whl → 0.20.74__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.
- zou/__init__.py +1 -1
- zou/app/blueprints/comments/resources.py +5 -2
- zou/app/blueprints/entities/resources.py +142 -21
- zou/app/blueprints/files/resources.py +876 -380
- zou/app/blueprints/index/resources.py +205 -20
- zou/app/blueprints/news/resources.py +187 -51
- zou/app/blueprints/persons/resources.py +301 -166
- zou/app/blueprints/playlists/resources.py +313 -147
- zou/app/blueprints/projects/__init__.py +7 -0
- zou/app/blueprints/projects/resources.py +597 -152
- zou/app/blueprints/search/resources.py +61 -19
- zou/app/blueprints/source/csv/assets.py +4 -0
- zou/app/blueprints/source/csv/shots.py +4 -0
- zou/app/blueprints/tasks/resources.py +477 -215
- zou/app/blueprints/user/resources.py +667 -343
- zou/app/services/comments_service.py +8 -5
- zou/app/services/time_spents_service.py +61 -1
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/METADATA +13 -13
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/RECORD +23 -23
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/WHEEL +0 -0
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/entry_points.txt +0 -0
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/licenses/LICENSE +0 -0
- {zou-0.20.72.dist-info → zou-0.20.74.dist-info}/top_level.txt +0 -0
|
@@ -15,27 +15,69 @@ class SearchResource(Resource, ArgsMixin):
|
|
|
15
15
|
---
|
|
16
16
|
tags:
|
|
17
17
|
- Search
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
requestBody:
|
|
19
|
+
required: true
|
|
20
|
+
content:
|
|
21
|
+
application/json:
|
|
22
|
+
schema:
|
|
23
|
+
type: object
|
|
24
|
+
required:
|
|
25
|
+
- query
|
|
26
|
+
properties:
|
|
27
|
+
query:
|
|
28
|
+
type: string
|
|
29
|
+
example: test will search for test
|
|
30
|
+
description: Search query string (minimum 3 characters)
|
|
31
|
+
project_id:
|
|
32
|
+
type: string
|
|
33
|
+
format: uuid
|
|
34
|
+
example: a24a6ea4-ce75-4665-a070-57453082c25
|
|
35
|
+
description: Filter search results by project ID
|
|
36
|
+
limit:
|
|
37
|
+
type: integer
|
|
38
|
+
default: 3
|
|
39
|
+
example: 3
|
|
40
|
+
description: Maximum number of results per index
|
|
41
|
+
offset:
|
|
42
|
+
type: integer
|
|
43
|
+
default: 0
|
|
44
|
+
example: 0
|
|
45
|
+
description: Number of results to skip
|
|
46
|
+
index_names:
|
|
47
|
+
type: array
|
|
48
|
+
items:
|
|
49
|
+
type: string
|
|
50
|
+
enum: ["assets", "shots", "persons"]
|
|
51
|
+
default: ["assets", "shots", "persons"]
|
|
52
|
+
example: ["assets"]
|
|
53
|
+
description: List of index names to search in
|
|
36
54
|
responses:
|
|
37
55
|
200:
|
|
38
|
-
|
|
56
|
+
description: List of entities that contain the query
|
|
57
|
+
content:
|
|
58
|
+
application/json:
|
|
59
|
+
schema:
|
|
60
|
+
type: object
|
|
61
|
+
properties:
|
|
62
|
+
persons:
|
|
63
|
+
type: array
|
|
64
|
+
items:
|
|
65
|
+
type: object
|
|
66
|
+
description: List of matching persons
|
|
67
|
+
assets:
|
|
68
|
+
type: array
|
|
69
|
+
items:
|
|
70
|
+
type: object
|
|
71
|
+
description: List of matching assets
|
|
72
|
+
shots:
|
|
73
|
+
type: array
|
|
74
|
+
items:
|
|
75
|
+
type: object
|
|
76
|
+
description: List of matching shots
|
|
77
|
+
400:
|
|
78
|
+
description: Bad request
|
|
79
|
+
403:
|
|
80
|
+
description: Insufficient permissions
|
|
39
81
|
"""
|
|
40
82
|
args = self.get_args(
|
|
41
83
|
[
|
|
@@ -209,6 +209,10 @@ class AssetsCsvImportResource(BaseCsvProjectImportResource):
|
|
|
209
209
|
else:
|
|
210
210
|
asset_new_values["data"] = entity.data.copy()
|
|
211
211
|
|
|
212
|
+
resolution = row.get("Resolution", None)
|
|
213
|
+
if resolution is not None:
|
|
214
|
+
asset_new_values["data"]["resolution"] = resolution
|
|
215
|
+
|
|
212
216
|
for name, descriptor in self.descriptor_fields.items():
|
|
213
217
|
if name in row:
|
|
214
218
|
if descriptor["data_type"] == "boolean":
|
|
@@ -229,6 +229,10 @@ class ShotsCsvImportResource(BaseCsvProjectImportResource):
|
|
|
229
229
|
if fps is not None:
|
|
230
230
|
shot_new_values["data"]["fps"] = fps
|
|
231
231
|
|
|
232
|
+
resolution = row.get("Resolution", None)
|
|
233
|
+
if resolution is not None:
|
|
234
|
+
shot_new_values["data"]["resolution"] = resolution
|
|
235
|
+
|
|
232
236
|
for name, descriptor in self.descriptor_fields.items():
|
|
233
237
|
if name in row:
|
|
234
238
|
if descriptor["data_type"] == "boolean":
|