xn-model 1.0.15__tar.gz → 1.0.16__tar.gz
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.
- {xn_model-1.0.15/xn_model.egg-info → xn_model-1.0.16}/PKG-INFO +1 -1
- {xn_model-1.0.15 → xn_model-1.0.16}/x_model/func.py +2 -2
- {xn_model-1.0.15 → xn_model-1.0.16/xn_model.egg-info}/PKG-INFO +1 -1
- {xn_model-1.0.15 → xn_model-1.0.16}/.env.sample +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/.gitignore +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/.pre-commit-config.yaml +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/README.md +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/makefile +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/pyproject.toml +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/setup.cfg +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/tests/__init__.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/tests/test_db.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/x_model/__init__.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/x_model/field.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/x_model/models.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/x_model/types.py +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/xn_model.egg-info/SOURCES.txt +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/xn_model.egg-info/dependency_links.txt +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/xn_model.egg-info/requires.txt +0 -0
- {xn_model-1.0.15 → xn_model-1.0.16}/xn_model.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from
|
|
1
|
+
from pypika_tortoise.terms import AggregateFunction, Field
|
|
2
2
|
from tortoise.expressions import Function
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class ArrayAgg(AggregateFunction):
|
|
6
6
|
def __init__(self, term, alias=None):
|
|
7
|
-
super(ArrayAgg, self).__init__("array_agg", term, alias=alias)
|
|
7
|
+
super(ArrayAgg, self).__init__("array_agg", Field(term), alias=alias)
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Array(Function):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|