zou 0.20.18__py3-none-any.whl → 0.20.19__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.20.18"
1
+ __version__ = "0.20.19"
@@ -1734,6 +1734,8 @@ class OpenTasksResource(Resource, ArgsMixin):
1734
1734
  ("project_id", None, False, str),
1735
1735
  ("person_id", None, False, str),
1736
1736
  ("task_status_id", None, False, str),
1737
+ ("studio_id", None, False, str),
1738
+ ("department_id", None, False, str),
1737
1739
  ("start_date", None, False, str),
1738
1740
  ("due_date", None, False, str),
1739
1741
  ("priority", None, False, str),
@@ -1747,6 +1749,8 @@ class OpenTasksResource(Resource, ArgsMixin):
1747
1749
  project_id=args["project_id"],
1748
1750
  person_id=args["person_id"],
1749
1751
  task_status_id=args["task_status_id"],
1752
+ studio_id=args["studio_id"],
1753
+ department_id=args["department_id"],
1750
1754
  start_date=args["start_date"],
1751
1755
  due_date=args["due_date"],
1752
1756
  priority=args["priority"],
zou/app/mixin.py CHANGED
@@ -78,7 +78,7 @@ class ArgsMixin(object):
78
78
  Returns limit requested by the user as an integer.
79
79
  """
80
80
  options = request.args
81
- return int(options.get("limit", "-1"))
81
+ return int(options.get("limit", 0))
82
82
 
83
83
  def get_sort_by(self):
84
84
  """
@@ -1858,6 +1858,8 @@ def get_open_tasks(
1858
1858
  task_status_id=None,
1859
1859
  project_id=None,
1860
1860
  person_id=None,
1861
+ studio_id=None,
1862
+ department_id=None,
1861
1863
  start_date=None,
1862
1864
  due_date=None,
1863
1865
  priority=None,
@@ -1958,8 +1960,22 @@ def get_open_tasks(
1958
1960
  query = query.filter(Task.assignees == None)
1959
1961
  query_stats = query_stats.filter(Task.assignees == None)
1960
1962
  else:
1961
- query = query.filter(Task.assignees.any(id=person_id))
1962
- query_stats = query_stats.filter(Task.assignees.any(id=person_id))
1963
+ query = query.filter(Task.assignees.any(
1964
+ Person.id.in_(person_id.split(","))
1965
+ ))
1966
+ query_stats = query_stats.filter(Task.assignees.any(
1967
+ Person.id.in_(person_id.split(","))
1968
+ ))
1969
+
1970
+ if studio_id is not None:
1971
+ query = query.filter(Task.assignees.any(studio_id=studio_id))
1972
+ query_stats = query_stats.filter(Task.assignees.any(studio_id=studio_id))
1973
+
1974
+ if department_id is not None:
1975
+ query = query.filter(
1976
+ Task.assignees.any(Person.departments.any(id=department_id)))
1977
+ query_stats = query_stats.filter(
1978
+ Task.assignees.any(Person.departments.any(id=department_id)))
1963
1979
 
1964
1980
  if start_date is not None:
1965
1981
  start_date = func.cast(start_date, Task.start_date.type)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: zou
3
- Version: 0.20.18
3
+ Version: 0.20.19
4
4
  Summary: API to store and manage the data of your animation production
5
5
  Home-page: https://zou.cg-wire.com
6
6
  Author: CG Wire
@@ -29,7 +29,7 @@ Requires-Dist: ffmpeg-python==0.2.0
29
29
  Requires-Dist: fido2==1.2.0
30
30
  Requires-Dist: flasgger==0.9.7.1
31
31
  Requires-Dist: flask_bcrypt==1.0.1
32
- Requires-Dist: flask_caching==2.3.0
32
+ Requires-Dist: flask_caching==2.3.1
33
33
  Requires-Dist: flask_fixtures==0.3.8
34
34
  Requires-Dist: flask_mail==0.10.0
35
35
  Requires-Dist: flask_principal==0.4.0
@@ -40,7 +40,7 @@ Requires-Dist: flask-jwt-extended==4.7.1
40
40
  Requires-Dist: flask-migrate==4.1.0
41
41
  Requires-Dist: flask-socketio==5.5.1
42
42
  Requires-Dist: flask==3.1.0
43
- Requires-Dist: gazu==0.10.28
43
+ Requires-Dist: gazu==0.10.29
44
44
  Requires-Dist: gevent-websocket==0.10.1
45
45
  Requires-Dist: gevent==24.11.1
46
46
  Requires-Dist: gunicorn==23.0.0
@@ -58,7 +58,7 @@ Requires-Dist: OpenTimelineIO-Plugins==0.17.0
58
58
  Requires-Dist: orjson==3.10.15
59
59
  Requires-Dist: pillow==11.1.0
60
60
  Requires-Dist: psutil==7.0.0
61
- Requires-Dist: psycopg[binary]==3.2.4
61
+ Requires-Dist: psycopg[binary]==3.2.5
62
62
  Requires-Dist: pyotp==2.9.0
63
63
  Requires-Dist: pysaml2==7.5.2
64
64
  Requires-Dist: python-nomad==2.1.0
@@ -1,4 +1,4 @@
1
- zou/__init__.py,sha256=oNL5wFOwj6vUybBQ_nAogGdRw6PlvL58pKDBW1mt5L0,24
1
+ zou/__init__.py,sha256=7_BEVRyVDum3Gz0OLUX1YOzldBAybtLQJWDsBEhDmWA,24
2
2
  zou/cli.py,sha256=8JyGrWm7-Ykshv5IBjwlBMn8JkFpHPCADChA9n8loTI,18755
3
3
  zou/debug.py,sha256=1fawPbkD4wn0Y9Gk0BiBFSa-CQe5agFi8R9uJYl2Uyk,520
4
4
  zou/event_stream.py,sha256=EpohqFJwWL0zs-Ic_W5dX5_XSDeCrqHQPL5Re39OnQ0,6382
@@ -6,7 +6,7 @@ zou/job_settings.py,sha256=_aqBhujt2Q8sXRWIbgbDf-LUdXRdBimdtTc-fZbiXoY,202
6
6
  zou/app/__init__.py,sha256=zGmaBGBHSS_Px34I3_WZmcse62G_AZJArjm4F6TwmRk,7100
7
7
  zou/app/api.py,sha256=JTB_IMVO8EOoyqx9KdRkiIix0chOLi0yGDY-verUJXA,5127
8
8
  zou/app/config.py,sha256=eXVrmZf550Tk0fiN0Asfrhel0StesTDLTAYU6LdM3n4,6747
9
- zou/app/mixin.py,sha256=eYwfS_CUFvNmldaQXrjsN5mK_gX0wYrBFykfx60uUM8,4897
9
+ zou/app/mixin.py,sha256=tvg5ErxKKW0tBweteB0iCg7Y-v4tUMd5RhQ3DoL3qNM,4894
10
10
  zou/app/swagger.py,sha256=Jr7zsMqJi0V4FledODOdu-aqqVE02jMFzhqVxHK0_2c,54158
11
11
  zou/app/blueprints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  zou/app/blueprints/assets/__init__.py,sha256=T2zhDagHjXF6jRwOQ8vqokZTkBHyY7XtTI0Rlooamjs,2931
@@ -127,7 +127,7 @@ zou/app/blueprints/source/shotgun/tasks.py,sha256=XXBRe9QhhS-kuZeV3HitOnpf7mmWVx
127
127
  zou/app/blueprints/source/shotgun/team.py,sha256=GF7y2BwDeFJCiidtG68icfCi-uV1-b96YKiH8KR54iE,1819
128
128
  zou/app/blueprints/source/shotgun/versions.py,sha256=8Mb35e5p3FLbbiu6AZb9tJErDKz2pPRBdIYu80Ayj7w,2292
129
129
  zou/app/blueprints/tasks/__init__.py,sha256=udtTZJVViawRAPu8dO_OoyVzQTheLYWTHeTnrC-2RDA,4331
130
- zou/app/blueprints/tasks/resources.py,sha256=DzwEBv2isg9oxCAE6qo0Q47pfZh_A_3z30QmGDsa9-w,55174
130
+ zou/app/blueprints/tasks/resources.py,sha256=YxYHkaJmdxbJG3lrYegqeLC5qvKJ_BDtdXHzJOmKyQY,55366
131
131
  zou/app/blueprints/user/__init__.py,sha256=H9zCHcVobC6jq6dTToXKAjnZmDA0a9gChHiIP3BcZsc,4586
132
132
  zou/app/blueprints/user/resources.py,sha256=loCigQvPCoRw6nVu_9TIY7pjUByJgk6vutFPSo0MwzI,39891
133
133
  zou/app/file_trees/default.json,sha256=ryUrEmQYE8B_WkzCoQLgmem3N9yNwMIWx9G8p3HfG9o,2310
@@ -210,7 +210,7 @@ zou/app/services/shots_service.py,sha256=JEBywQGSKz1R7uXM8wtQQebMhWQZbGrWmTS5nOy
210
210
  zou/app/services/stats_service.py,sha256=cAlc92i9d6eYtsuwe3hYHYwdytg8KEMi1-TADfysJwM,11733
211
211
  zou/app/services/status_automations_service.py,sha256=tVio7Sj7inhvKS4UOyRhcdpwr_KNP96hT1o0X7XcGF4,715
212
212
  zou/app/services/sync_service.py,sha256=kJ1LGMNfPh9_BDwGTfoYWHrLZ8OlT0hWk-R8wNt0t3w,41562
213
- zou/app/services/tasks_service.py,sha256=7tOZLSKB26Jj9N6hl02vmJAzeq9uV121B4Mf3IVBEm4,68530
213
+ zou/app/services/tasks_service.py,sha256=Bjqc9ounjXtm9aApt5eSh_w1djd8BqGNx-Ah8Hx7foc,69118
214
214
  zou/app/services/telemetry_services.py,sha256=xQm1h1t_JxSFW59zQGf4NuNdUi1UfMa_6pQ-ytRbmGA,1029
215
215
  zou/app/services/time_spents_service.py,sha256=H9X-60s6oqtY9rtU-K2jKwUSljfkdGlf_9wMr3iVfIA,15158
216
216
  zou/app/services/user_service.py,sha256=74gi_ao4gQenmN95Yf2aRmVyTFTJ8TIZO3joov2SNJ4,50346
@@ -417,9 +417,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
417
417
  zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
418
418
  zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
419
419
  zou/utils/movie.py,sha256=d67fIL9dVBKt-E_qCGXRbNNdbJaJR5sHvZeX3hf8ldE,16559
420
- zou-0.20.18.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
421
- zou-0.20.18.dist-info/METADATA,sha256=Isa3DGGFp6qYjXcCd_ZqcGv4rPE4xeJ3kIjajg9d6LI,6673
422
- zou-0.20.18.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
423
- zou-0.20.18.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
424
- zou-0.20.18.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
425
- zou-0.20.18.dist-info/RECORD,,
420
+ zou-0.20.19.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
421
+ zou-0.20.19.dist-info/METADATA,sha256=XWEEmy74Yb-k7Qts_09CsLXPmJiGLN_XbFHPzbs3X3k,6673
422
+ zou-0.20.19.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
423
+ zou-0.20.19.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
424
+ zou-0.20.19.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
425
+ zou-0.20.19.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes