cs-models 0.0.684__py3-none-any.whl → 0.0.686__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 cs-models might be problematic. Click here for more details.
- cs_models/resources/SmartGridCell/models.py +0 -12
- cs_models/resources/SmartGridCell/schemas.py +0 -1
- cs_models/resources/WorkbookBlock/models.py +0 -7
- cs_models/resources/WorkbookBlock/schemas.py +0 -8
- {cs_models-0.0.684.dist-info → cs_models-0.0.686.dist-info}/METADATA +1 -1
- {cs_models-0.0.684.dist-info → cs_models-0.0.686.dist-info}/RECORD +8 -8
- {cs_models-0.0.684.dist-info → cs_models-0.0.686.dist-info}/WHEEL +0 -0
- {cs_models-0.0.684.dist-info → cs_models-0.0.686.dist-info}/top_level.txt +0 -0
|
@@ -10,11 +10,6 @@ class SmartGridCellModel(Base):
|
|
|
10
10
|
__tablename__ = "smart_grid_cells"
|
|
11
11
|
|
|
12
12
|
id = Column(Integer, primary_key=True)
|
|
13
|
-
block_id = Column(
|
|
14
|
-
Integer,
|
|
15
|
-
ForeignKey("workbook_blocks.id"),
|
|
16
|
-
nullable=False,
|
|
17
|
-
)
|
|
18
13
|
row = Column(Integer, nullable=False)
|
|
19
14
|
col = Column(Integer, nullable=False)
|
|
20
15
|
type = Column(String(20), nullable=False)
|
|
@@ -33,13 +28,6 @@ class SmartGridCellModel(Base):
|
|
|
33
28
|
onupdate=lambda: datetime.utcnow(),
|
|
34
29
|
)
|
|
35
30
|
|
|
36
|
-
# These are ORM fields. Don't need to be added in the corresponding migration.
|
|
37
|
-
# https://docs.sqlalchemy.org/en/14/orm/tutorial.html#building-a-relationship
|
|
38
|
-
workbook_block = relationship(
|
|
39
|
-
"WorkbookBlockModel",
|
|
40
|
-
back_populates="grid",
|
|
41
|
-
)
|
|
42
|
-
|
|
43
31
|
user_query = relationship(
|
|
44
32
|
"AssistantUserQueryModel",
|
|
45
33
|
)
|
|
@@ -7,7 +7,6 @@ class SmartGridCellResourceSchema(Schema):
|
|
|
7
7
|
"""Class for AssistantCommandResource schema"""
|
|
8
8
|
|
|
9
9
|
id = fields.Integer(dump_only=True)
|
|
10
|
-
block_id = fields.Integer(required=True)
|
|
11
10
|
row = fields.Integer(required=True)
|
|
12
11
|
col = fields.Integer(required=True)
|
|
13
12
|
type = fields.String(required=True)
|
|
@@ -43,10 +43,3 @@ class WorkbookBlockModel(Base):
|
|
|
43
43
|
order_by=WorkbookBlockCommentModel.sequence_number,
|
|
44
44
|
back_populates="workbook_block",
|
|
45
45
|
)
|
|
46
|
-
|
|
47
|
-
grid = relationship(
|
|
48
|
-
"SmartGridCellModel",
|
|
49
|
-
primaryjoin="and_(WorkbookBlockModel.id==SmartGridCellModel.block_id, "
|
|
50
|
-
"or_(SmartGridCellModel.is_deleted==False, SmartGridCellModel.is_deleted==None))",
|
|
51
|
-
back_populates="workbook_block",
|
|
52
|
-
)
|
|
@@ -4,9 +4,6 @@ from marshmallow import Schema, fields
|
|
|
4
4
|
from ..WorkbookBlockComment.schemas import (
|
|
5
5
|
WorkbookBlockCommentResourceSchema,
|
|
6
6
|
)
|
|
7
|
-
from ..SmartGridCell.schemas import (
|
|
8
|
-
SmartGridCellResourceSchema
|
|
9
|
-
)
|
|
10
7
|
|
|
11
8
|
|
|
12
9
|
class WorkbookBlockDataField(fields.Field):
|
|
@@ -60,11 +57,6 @@ class WorkbookBlockResourceSchema(Schema):
|
|
|
60
57
|
many=True,
|
|
61
58
|
dump_only=True,
|
|
62
59
|
)
|
|
63
|
-
grid = fields.Nested(
|
|
64
|
-
SmartGridCellResourceSchema(exclude=("block_id",)),
|
|
65
|
-
many=True,
|
|
66
|
-
dump_only=True,
|
|
67
|
-
)
|
|
68
60
|
is_deleted = fields.Boolean(allow_none=True)
|
|
69
61
|
created_at = fields.DateTime(dump_only=True)
|
|
70
62
|
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -870,8 +870,8 @@ cs_models/resources/SearchLink/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
870
870
|
cs_models/resources/SearchLink/models.py,sha256=l1tPCSKHK7Wq1OUWFH72NYncEt6Q3bR0P6ii7YKoxCM,729
|
|
871
871
|
cs_models/resources/SearchLink/schemas.py,sha256=A8Y6LRgw7MHs9bihf0gZPfqp6KDm0Z8k6PJSL9WVxsc,448
|
|
872
872
|
cs_models/resources/SmartGridCell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
873
|
-
cs_models/resources/SmartGridCell/models.py,sha256=
|
|
874
|
-
cs_models/resources/SmartGridCell/schemas.py,sha256=
|
|
873
|
+
cs_models/resources/SmartGridCell/models.py,sha256=qolCmQ7C2BUetYADV3Ju6V5EK-byFK3RWAwU1mtYOqk,987
|
|
874
|
+
cs_models/resources/SmartGridCell/schemas.py,sha256=JVPfua3I14z8h79G5kRMjZYqsyyuyHM2rELSH3cc-Zc,716
|
|
875
875
|
cs_models/resources/Stream/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
876
876
|
cs_models/resources/Stream/models.py,sha256=wXb7yOjW82ZqmLhRcDhjLPk6_WJ5FGmvKpOcSvDMuBM,1884
|
|
877
877
|
cs_models/resources/Stream/schemas.py,sha256=ZFsdEKINFGaSBUAcQQvilq5MKpYGliZseguQoc_opxk,3111
|
|
@@ -1090,8 +1090,8 @@ cs_models/resources/Workbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
1090
1090
|
cs_models/resources/Workbook/models.py,sha256=4p2R8WCYYX0FOSXG0b2YhmuzKHTxYY4WZVi9X7e9GKQ,1003
|
|
1091
1091
|
cs_models/resources/Workbook/schemas.py,sha256=xcNoPzHK6ER06XA3fAvX3x7VtX47aBP0vrIqiJvUVKw,688
|
|
1092
1092
|
cs_models/resources/WorkbookBlock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1093
|
-
cs_models/resources/WorkbookBlock/models.py,sha256=
|
|
1094
|
-
cs_models/resources/WorkbookBlock/schemas.py,sha256=
|
|
1093
|
+
cs_models/resources/WorkbookBlock/models.py,sha256=hYZkSFR5p6nVMUbb6ZQxvXvB6XMPlgEDliBx_k0HZ40,1659
|
|
1094
|
+
cs_models/resources/WorkbookBlock/schemas.py,sha256=lRon0US-VHMOGypaiUSZsskgFpjNEtmFEk9nFU7DLnI,1847
|
|
1095
1095
|
cs_models/resources/WorkbookBlockComment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1096
1096
|
cs_models/resources/WorkbookBlockComment/models.py,sha256=t1dLdweoPOzld1uBqrGJ3rrr66UkMwdiplNZEA1WtPU,1251
|
|
1097
1097
|
cs_models/resources/WorkbookBlockComment/schemas.py,sha256=9UI_mTuPBYBk5qKUC2u0oR_clHA9XZ-bh5hhr24E-vs,563
|
|
@@ -1141,7 +1141,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1141
1141
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1142
1142
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1143
1143
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1144
|
-
cs_models-0.0.
|
|
1145
|
-
cs_models-0.0.
|
|
1146
|
-
cs_models-0.0.
|
|
1147
|
-
cs_models-0.0.
|
|
1144
|
+
cs_models-0.0.686.dist-info/METADATA,sha256=zhnwT2cnCXMAJHBN9_VxN8yijdVNYiKiUVBFe3y2DvE,792
|
|
1145
|
+
cs_models-0.0.686.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1146
|
+
cs_models-0.0.686.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1147
|
+
cs_models-0.0.686.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|