zou 0.20.46__py3-none-any.whl → 0.20.47__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/migrations/versions/d80f02824047_add_plugin_revision.py +44 -0
- zou/migrations/versions/e7e633bd6fa2_add_exceptions_to_budget_entries.py +2 -4
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/METADATA +1 -1
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/RECORD +9 -9
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/WHEEL +0 -0
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/entry_points.txt +0 -0
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/licenses/LICENSE +0 -0
- {zou-0.20.46.dist-info → zou-0.20.47.dist-info}/top_level.txt +0 -0
zou/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.20.
|
|
1
|
+
__version__ = "0.20.47"
|
|
@@ -8,6 +8,12 @@ Create Date: 2025-05-02 16:08:57.078114
|
|
|
8
8
|
|
|
9
9
|
from alembic import op
|
|
10
10
|
import sqlalchemy as sa
|
|
11
|
+
from alembic import op
|
|
12
|
+
import sqlalchemy as sa
|
|
13
|
+
from zou.migrations.utils.base import BaseMixin
|
|
14
|
+
from sqlalchemy.ext.declarative import declarative_base
|
|
15
|
+
from sqlalchemy.dialects.postgresql import JSONB
|
|
16
|
+
from sqlalchemy.orm.session import Session
|
|
11
17
|
|
|
12
18
|
|
|
13
19
|
# revision identifiers, used by Alembic.
|
|
@@ -16,6 +22,37 @@ down_revision = "e7e633bd6fa2"
|
|
|
16
22
|
branch_labels = None
|
|
17
23
|
depends_on = None
|
|
18
24
|
|
|
25
|
+
base = declarative_base()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Task(base, BaseMixin):
|
|
29
|
+
"""
|
|
30
|
+
Describes a task done by a CG artist on an entity of the CG production.
|
|
31
|
+
The task has a state and assigned to people. It handles notion of time like
|
|
32
|
+
duration, start date and end date.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
__tablename__ = "task"
|
|
36
|
+
name = sa.Column(sa.String(80), nullable=False)
|
|
37
|
+
description = sa.Column(sa.Text())
|
|
38
|
+
|
|
39
|
+
priority = sa.Column(sa.Integer, default=0)
|
|
40
|
+
difficulty = sa.Column(sa.Integer, default=3, nullable=False)
|
|
41
|
+
duration = sa.Column(sa.Float, default=0)
|
|
42
|
+
estimation = sa.Column(sa.Float, default=0)
|
|
43
|
+
completion_rate = sa.Column(sa.Integer, default=0)
|
|
44
|
+
retake_count = sa.Column(sa.Integer, default=0)
|
|
45
|
+
sort_order = sa.Column(sa.Integer, default=0)
|
|
46
|
+
start_date = sa.Column(sa.DateTime)
|
|
47
|
+
due_date = sa.Column(sa.DateTime)
|
|
48
|
+
real_start_date = sa.Column(sa.DateTime)
|
|
49
|
+
end_date = sa.Column(sa.DateTime)
|
|
50
|
+
done_date = sa.Column(sa.DateTime)
|
|
51
|
+
last_comment_date = sa.Column(sa.DateTime)
|
|
52
|
+
nb_assets_ready = sa.Column(sa.Integer, default=0)
|
|
53
|
+
data = sa.Column(JSONB)
|
|
54
|
+
nb_drawings = sa.Column(sa.Integer, default=0)
|
|
55
|
+
|
|
19
56
|
|
|
20
57
|
def upgrade():
|
|
21
58
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
@@ -33,6 +70,13 @@ def upgrade():
|
|
|
33
70
|
)
|
|
34
71
|
|
|
35
72
|
with op.batch_alter_table("task", schema=None) as batch_op:
|
|
73
|
+
session = Session(bind=op.get_bind())
|
|
74
|
+
session.query(Task).where(Task.difficulty == None).update(
|
|
75
|
+
{
|
|
76
|
+
Task.difficulty: 3,
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
session.commit()
|
|
36
80
|
batch_op.alter_column(
|
|
37
81
|
"difficulty",
|
|
38
82
|
existing_type=sa.INTEGER(),
|
|
@@ -32,8 +32,6 @@ def upgrade():
|
|
|
32
32
|
|
|
33
33
|
def downgrade():
|
|
34
34
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
35
|
-
with op.batch_alter_table("
|
|
36
|
-
batch_op.
|
|
37
|
-
"difficulty", existing_type=sa.INTEGER(), nullable=True
|
|
38
|
-
)
|
|
35
|
+
with op.batch_alter_table("budget_entry", schema=None) as batch_op:
|
|
36
|
+
batch_op.drop_column("exceptions")
|
|
39
37
|
# ### end Alembic commands ###
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
zou/__init__.py,sha256=
|
|
1
|
+
zou/__init__.py,sha256=d3ifraY4SFtace5KlJP00nLQYi316cHYzwCge7c-x3s,24
|
|
2
2
|
zou/cli.py,sha256=8YdBqJKEulAZ_1ohTdmpt_lf8EMjDmYiH8l0jVNlfG0,22397
|
|
3
3
|
zou/debug.py,sha256=1fawPbkD4wn0Y9Gk0BiBFSa-CQe5agFi8R9uJYl2Uyk,520
|
|
4
4
|
zou/event_stream.py,sha256=yTU1Z3r55SiYm8Y5twtJIo5kTnhbBK-XKc8apdgvzNw,8291
|
|
@@ -407,7 +407,7 @@ zou/migrations/versions/cf3d365de164_add_entity_version_model.py,sha256=n3k3ojRQ
|
|
|
407
407
|
zou/migrations/versions/cf6cec6d6bf5_add_status_field_to_preview_file.py,sha256=0c8_OghAaaM0R6bKbs7MADvOkZ1sFE3SVp_nNB2ACgQ,950
|
|
408
408
|
zou/migrations/versions/d25118cddcaa_modify_salary_scale_model.py,sha256=hjrfR0tnxAAfVgAG_Fqi2He4PqDyoqX6pOaj5TrmEJc,3814
|
|
409
409
|
zou/migrations/versions/d80267806131_task_status_new_column_is_default.py,sha256=7HtK0bfBUh9MrJIbpUgz6S-Ye_R_4DbHILpODMBVVwE,2610
|
|
410
|
-
zou/migrations/versions/d80f02824047_add_plugin_revision.py,sha256=
|
|
410
|
+
zou/migrations/versions/d80f02824047_add_plugin_revision.py,sha256=p_OYtHamUwSiWJxY00UwOVWoiCuqIac73nW6nVNBdXw,3534
|
|
411
411
|
zou/migrations/versions/d8dcd5196d57_add_casting_label.py,sha256=TO4dlWblBzwAcs9Vx4fJVoMsdy2XuF7OncFn8N6BSe8,687
|
|
412
412
|
zou/migrations/versions/de8a3de227ef_.py,sha256=3spU6b2kSApcMi9NomIRQGmoNtYos137krVrmdJWLCQ,1319
|
|
413
413
|
zou/migrations/versions/deeacd38d373_for_projecttaskstatuslink_set_default_.py,sha256=eJsmrxTv1AP47_M0wXzUxIUf3xr904WY05MNYmnCcCg,1821
|
|
@@ -416,7 +416,7 @@ zou/migrations/versions/df9f8a147e80_change_file_size_to_big_integer.py,sha256=o
|
|
|
416
416
|
zou/migrations/versions/e1ef93f40d3d_.py,sha256=6qs4bZPzh9pBM8MgAtogz1pXqjrvyBpwkNr-1w4RzRo,708
|
|
417
417
|
zou/migrations/versions/e29638428dfd_add_schedule_item_table.py,sha256=M9ZoAmc-wpZsgbzdMIFeFmHPNxST8NR2L-VlcjZ3hIU,2711
|
|
418
418
|
zou/migrations/versions/e3f6db74cc1e_.py,sha256=dIFNZuDzemSZRcbn9m5b8HnjCNR0ufiGwLkQEjFFcco,907
|
|
419
|
-
zou/migrations/versions/e7e633bd6fa2_add_exceptions_to_budget_entries.py,sha256=
|
|
419
|
+
zou/migrations/versions/e7e633bd6fa2_add_exceptions_to_budget_entries.py,sha256=ab1K8GHcMLkaYW4TkMUQnZcDg9RlD3YLtpVS0jpyps8,978
|
|
420
420
|
zou/migrations/versions/e839d6603c09_add_person_id_to_shot_history.py,sha256=MFKReFog5-kR2ftgY7J7Gd3slcMHpPUCyzCGw0Wr-5U,1295
|
|
421
421
|
zou/migrations/versions/ee2373fbe3a4_.py,sha256=_m4Awx8OxqCTN-deyq8dx9xvDEcNumibrqZ_7DXav-o,5666
|
|
422
422
|
zou/migrations/versions/f0567e8d0c62_.py,sha256=ZsyaVPAUrN1biNNxdQbOyGjG3KjoBiHXM3CcuLJxwac,1138
|
|
@@ -446,9 +446,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
|
|
|
446
446
|
zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
|
|
447
447
|
zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
448
448
|
zou/utils/movie.py,sha256=d67fIL9dVBKt-E_qCGXRbNNdbJaJR5sHvZeX3hf8ldE,16559
|
|
449
|
-
zou-0.20.
|
|
450
|
-
zou-0.20.
|
|
451
|
-
zou-0.20.
|
|
452
|
-
zou-0.20.
|
|
453
|
-
zou-0.20.
|
|
454
|
-
zou-0.20.
|
|
449
|
+
zou-0.20.47.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
450
|
+
zou-0.20.47.dist-info/METADATA,sha256=vpHO5UNC_iBIrLrSzzgqIC1RTFE5bqLgp513rmkAyc8,6826
|
|
451
|
+
zou-0.20.47.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
452
|
+
zou-0.20.47.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
|
|
453
|
+
zou-0.20.47.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
|
|
454
|
+
zou-0.20.47.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|