artemis-model 0.1.69__tar.gz → 0.1.70__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.
Files changed (22) hide show
  1. {artemis_model-0.1.69 → artemis_model-0.1.70}/PKG-INFO +1 -1
  2. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/playlist.py +1 -4
  3. {artemis_model-0.1.69 → artemis_model-0.1.70}/pyproject.toml +1 -1
  4. {artemis_model-0.1.69 → artemis_model-0.1.70}/README.md +0 -0
  5. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/__init__.py +0 -0
  6. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/album.py +0 -0
  7. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/artist.py +0 -0
  8. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/auth.py +0 -0
  9. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/base.py +0 -0
  10. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/category.py +0 -0
  11. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/dj_set.py +0 -0
  12. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/genre.py +0 -0
  13. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/location.py +0 -0
  14. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/message.py +0 -0
  15. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/organization.py +0 -0
  16. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/otp.py +0 -0
  17. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/permission.py +0 -0
  18. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/schedule.py +0 -0
  19. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/setting.py +0 -0
  20. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/track.py +0 -0
  21. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/user.py +0 -0
  22. {artemis_model-0.1.69 → artemis_model-0.1.70}/artemis_model/zone.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: artemis-model
3
- Version: 0.1.69
3
+ Version: 0.1.70
4
4
  Summary:
5
5
  Author: Jukeboxy
6
6
  Requires-Python: >=3.10.6,<4.0.0
@@ -33,6 +33,7 @@ class PlaylistMixin(TimeStampMixin):
33
33
  notes: Mapped[str | None] = mapped_column(nullable=True)
34
34
  published_at: Mapped[date | None] = mapped_column(nullable=True)
35
35
  is_private: Mapped[bool] = mapped_column(default=False)
36
+ total_duration: Mapped[int] = mapped_column(default=0)
36
37
 
37
38
  name_tsv = mapped_column(
38
39
  TSVector(),
@@ -93,10 +94,6 @@ class PlaylistMixin(TimeStampMixin):
93
94
  secondary="playlist_category_assoc", viewonly=True
94
95
  )
95
96
 
96
- @property
97
- def total_duration(self) -> int:
98
- return sum([0 if not t.duration else t.duration for t in self.tracks], 0)
99
-
100
97
  # __table_args__ = (
101
98
  # Index(
102
99
  # "fts_ix_playlist_name_tsv",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "artemis-model"
3
- version = "0.1.69"
3
+ version = "0.1.70"
4
4
  description = ""
5
5
  authors = ["Jukeboxy"]
6
6
  readme = "README.md"
File without changes