artemis-model 0.1.139__py3-none-any.whl → 0.1.140__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 artemis-model might be problematic. Click here for more details.
|
@@ -8,29 +8,25 @@ from artemis_model.base import TimeStampMixin, CustomSyncBase, CustomBase
|
|
|
8
8
|
|
|
9
9
|
class LocationGenreExclusionMixin(TimeStampMixin):
|
|
10
10
|
"""Association table for tracking which genres are excluded at the location level."""
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
|
13
13
|
location_id: Mapped[uuid.UUID] = mapped_column(
|
|
14
|
-
ForeignKey("location.id", ondelete="CASCADE"),
|
|
15
|
-
nullable=False,
|
|
16
|
-
index=True
|
|
14
|
+
ForeignKey("location.id", ondelete="CASCADE"), nullable=False, index=True
|
|
17
15
|
)
|
|
18
16
|
genre_id: Mapped[int] = mapped_column(
|
|
19
|
-
ForeignKey("genre.id", ondelete="CASCADE"),
|
|
20
|
-
nullable=False,
|
|
21
|
-
index=True
|
|
17
|
+
ForeignKey("genre.id", ondelete="CASCADE"), nullable=False, index=True
|
|
22
18
|
)
|
|
23
19
|
|
|
24
20
|
@declared_attr
|
|
25
21
|
def location(cls) -> Mapped["Location"]:
|
|
26
|
-
return relationship(
|
|
22
|
+
return relationship(back_populates="genre_exclusions")
|
|
27
23
|
|
|
28
|
-
@declared_attr
|
|
24
|
+
@declared_attr
|
|
29
25
|
def genre(cls) -> Mapped["Genre"]:
|
|
30
|
-
return relationship(
|
|
26
|
+
return relationship()
|
|
31
27
|
|
|
32
28
|
__table_args__ = (
|
|
33
|
-
UniqueConstraint(
|
|
29
|
+
UniqueConstraint("location_id", "genre_id", name="unique_location_genre_exclusion"),
|
|
34
30
|
)
|
|
35
31
|
|
|
36
32
|
|
|
@@ -39,4 +35,4 @@ class LocationGenreExclusionSync(CustomSyncBase, LocationGenreExclusionMixin):
|
|
|
39
35
|
|
|
40
36
|
|
|
41
37
|
class LocationGenreExclusion(CustomBase, LocationGenreExclusionMixin):
|
|
42
|
-
pass
|
|
38
|
+
pass
|
|
@@ -8,7 +8,7 @@ artemis_model/category.py,sha256=ERZC8YBTtmF72ykSiVEtf_Ws3mPuN28ECfTxWF7H8tE,166
|
|
|
8
8
|
artemis_model/dj_set.py,sha256=fOYnCu4n5TiqyiSojfdFnO7LuPe_mM2SUwBV5xHy2Kc,3782
|
|
9
9
|
artemis_model/genre.py,sha256=8_-IuJS543wIhUVCES3bdrDpKPKx-plDuBKGBcoMIbc,1570
|
|
10
10
|
artemis_model/location.py,sha256=6Z99OCxhB3VQ4CqNwZP3ShnJ-gOnc5rxGnCn5aCIFZ8,4896
|
|
11
|
-
artemis_model/location_genre_exclusion.py,sha256=
|
|
11
|
+
artemis_model/location_genre_exclusion.py,sha256=SMX4TXmpwn28tytUq7-qP9ZyJ_ULs5SUv4h7sU0dRFo,1252
|
|
12
12
|
artemis_model/message.py,sha256=W4vhllsD4Nn11JIKeXlgsKC2NWCt3UMkWh-Sma71gBI,3325
|
|
13
13
|
artemis_model/organization.py,sha256=yjGHJLTOtb9PUfxSPal782Rceb8xb8vftXX67tHRNqc,2351
|
|
14
14
|
artemis_model/otp.py,sha256=guIRGtyFlHUBthCAEsTh5_Hs-1yiGN_qfEO4uHNcv4s,1017
|
|
@@ -28,6 +28,6 @@ artemis_model/track.py,sha256=QwUF0QKVn1I64648B-NI75-IzGQvnLt9B0emD4GnS6E,3757
|
|
|
28
28
|
artemis_model/user.py,sha256=eqIdCiBJRNLjCwPPCn-gQ6si0O5JUBGfp9oWJL5zVW4,2131
|
|
29
29
|
artemis_model/zone.py,sha256=iGRUtzUwKh9LHT3MOfzzg1DnkPBts_ZBzZVTi2EmIgs,2282
|
|
30
30
|
artemis_model/zone_activity.py,sha256=BY4iODavY9ceJ5oRChdjjxf26S3U30Yb7Pxm5YRFpCo,1590
|
|
31
|
-
artemis_model-0.1.
|
|
32
|
-
artemis_model-0.1.
|
|
33
|
-
artemis_model-0.1.
|
|
31
|
+
artemis_model-0.1.140.dist-info/METADATA,sha256=mc6RLIZqlU0iqYDyVoJLWFoPaEX3B1gyOV6S49fajWU,3445
|
|
32
|
+
artemis_model-0.1.140.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
33
|
+
artemis_model-0.1.140.dist-info/RECORD,,
|
|
File without changes
|