artemis-model 0.1.134__tar.gz → 0.1.135__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.
- {artemis_model-0.1.134 → artemis_model-0.1.135}/PKG-INFO +1 -1
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/category.py +2 -3
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/playlist.py +3 -1
- {artemis_model-0.1.134 → artemis_model-0.1.135}/pyproject.toml +1 -1
- {artemis_model-0.1.134 → artemis_model-0.1.135}/README.md +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/__init__.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/album.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/artist.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/auth.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/banned_tracks.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/base.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/dj_set.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/genre.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/location.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/message.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/organization.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/otp.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/permission.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/__init__.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/bucket.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/device.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/keys.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/play_history.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/redis/zone_state.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/schedule.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/setting.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/sqs/__init__.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/sqs/messages.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/track.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/user.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/zone.py +0 -0
- {artemis_model-0.1.134 → artemis_model-0.1.135}/artemis_model/zone_activity.py +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
from sqlalchemy import Computed,
|
1
|
+
from sqlalchemy import Computed, func, literal, text
|
2
2
|
from sqlalchemy.ext.associationproxy import AssociationProxy, association_proxy
|
3
3
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
4
4
|
|
@@ -35,7 +35,6 @@ class CategoryMixin(TimeStampMixin):
|
|
35
35
|
"playlist",
|
36
36
|
creator=lambda p: PlaylistCategoryAssoc(playlist_id=p),
|
37
37
|
)
|
38
|
-
|
39
38
|
|
40
39
|
# __table_args__ = (
|
41
40
|
# Index(
|
@@ -51,4 +50,4 @@ class CategorySync(CustomSyncBase, CategoryMixin):
|
|
51
50
|
|
52
51
|
|
53
52
|
class Category(CustomBase, CategoryMixin):
|
54
|
-
pass
|
53
|
+
pass
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import uuid
|
2
2
|
from datetime import date, datetime
|
3
3
|
|
4
|
-
from sqlalchemy import Computed, ForeignKey, func, literal, text
|
4
|
+
from sqlalchemy import Computed, ForeignKey, func, literal, text, ARRAY, String
|
5
5
|
from sqlalchemy.ext.hybrid import hybrid_property
|
6
6
|
from sqlalchemy.ext.associationproxy import AssociationProxy, association_proxy
|
7
7
|
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
@@ -43,6 +43,8 @@ class PlaylistMixin(TimeStampMixin):
|
|
43
43
|
published_at: Mapped[date | None] = mapped_column(nullable=True)
|
44
44
|
is_private: Mapped[bool] = mapped_column(default=False)
|
45
45
|
total_duration: Mapped[int] = mapped_column(default=0)
|
46
|
+
track_count: Mapped[int] = mapped_column(default=0)
|
47
|
+
artist_names: Mapped[list[str]] = mapped_column(ARRAY(String), nullable=False, default=[])
|
46
48
|
|
47
49
|
name_tsv = mapped_column(
|
48
50
|
TSVector(),
|
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
|
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
|