artemis-model 0.1.128__tar.gz → 0.1.129__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.128 → artemis_model-0.1.129}/PKG-INFO +1 -1
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/__init__.py +10 -1
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/zone_state.py +1 -1
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/zone_activity.py +1 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/pyproject.toml +1 -1
- {artemis_model-0.1.128 → artemis_model-0.1.129}/README.md +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/__init__.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/album.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/artist.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/auth.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/banned_tracks.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/base.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/category.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/dj_set.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/genre.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/location.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/message.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/organization.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/otp.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/permission.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/playlist.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/bucket.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/device.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/keys.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/redis/play_history.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/schedule.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/setting.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/sqs/__init__.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/sqs/messages.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/track.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/user.py +0 -0
- {artemis_model-0.1.128 → artemis_model-0.1.129}/artemis_model/zone.py +0 -0
@@ -1,6 +1,14 @@
|
|
1
1
|
"""Redis models."""
|
2
2
|
|
3
|
-
from .zone_state import
|
3
|
+
from .zone_state import (
|
4
|
+
ZoneState,
|
5
|
+
NowPlaying,
|
6
|
+
SessionId,
|
7
|
+
BucketId,
|
8
|
+
PlaylistSimple,
|
9
|
+
PushedPlaylistDetails,
|
10
|
+
ScheduleDetails,
|
11
|
+
)
|
4
12
|
from .device import ActiveDevice
|
5
13
|
from .bucket import RedisTrackBucketItem
|
6
14
|
from .play_history import RedisTrackPlayHistoryItem
|
@@ -21,6 +29,7 @@ __all__ = [
|
|
21
29
|
"ActiveDevice",
|
22
30
|
"PlaylistSimple",
|
23
31
|
"PushedPlaylistDetails",
|
32
|
+
"ScheduleDetails",
|
24
33
|
"KEY_ZONE_PLAY_HISTORY_TEMPLATE",
|
25
34
|
"KEY_ZONE_PUSH_PLAYLIST_BUCKET_TEMPLATE",
|
26
35
|
"KEY_ZONE_SCHEDULE_BUCKET_TEMPLATE",
|
@@ -75,7 +75,6 @@ class PushedPlaylistDetails(BaseModel):
|
|
75
75
|
description="The expiry type of the pushed playlist",
|
76
76
|
)
|
77
77
|
|
78
|
-
|
79
78
|
@field_validator("redis_details", mode="before")
|
80
79
|
@classmethod
|
81
80
|
def default_empty_dict_if_none(cls, v):
|
@@ -115,4 +114,5 @@ __all__ = [
|
|
115
114
|
"BucketId",
|
116
115
|
"PlaylistSimple",
|
117
116
|
"PushedPlaylistDetails",
|
117
|
+
"ScheduleDetails",
|
118
118
|
]
|
@@ -35,6 +35,7 @@ class PlayerActivityMixin(TimeStampMixin, AuditMixin):
|
|
35
35
|
Index("idx_player_activity_player_created", "player_id", PlayerActivityMixin.created_at.desc())
|
36
36
|
Index("idx_player_activity_created", PlayerActivityMixin.created_at.desc())
|
37
37
|
|
38
|
+
|
38
39
|
class PlayerActivitySync(CustomSyncBase, PlayerActivityMixin):
|
39
40
|
"""Sync model for Player Activity"""
|
40
41
|
|
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
|