haystack-ml-stack 0.2.2__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haystack-ml-stack
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Functions related to Haystack ML
5
5
  Author-email: Oscar Vega <oscar@haystack.tv>
6
6
  License: MIT
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "haystack-ml-stack"
8
- version = "0.2.2"
8
+ version = "0.2.3"
9
9
  description = "Functions related to Haystack ML"
10
10
  readme = "README.md"
11
11
  authors = [{ name = "Oscar Vega", email = "oscar@haystack.tv" }]
@@ -1,4 +1,4 @@
1
1
  from .app import create_app
2
2
 
3
3
  __all__ = ["create_app"]
4
- __version__ = "0.2.2"
4
+ __version__ = "0.2.3"
@@ -3,7 +3,7 @@ import numpy as np
3
3
  import typing as _t
4
4
 
5
5
 
6
- def stream_tags_cleanup(
6
+ def stream_favorites_cleanup(
7
7
  stream, user_favorite_tags: list[str], user_favorite_authors: list[str]
8
8
  ) -> dict:
9
9
  stream_tags = stream.get("haystackTags", [])
@@ -146,12 +146,8 @@ def device_watched_count_cleanups(
146
146
  watched = counts_obj.get(entry_context, {}).get("watched", 0)
147
147
  context_key = entry_context if "launch" not in entry_context else "launch"
148
148
  context_key = context_key.upper().replace(" ", "_")
149
- feats["features"][f"STREAM_{context_key}_{device_type}_24H_TOTAL_WATCHED"] = (
150
- watched
151
- )
152
- feats["features"][f"STREAM_{context_key}_{device_type}_24H_TOTAL_ATTEMPTS"] = (
153
- attempts
154
- )
149
+ feats[f"STREAM_{context_key}_{device_type}_24H_TOTAL_WATCHED"] = watched
150
+ feats[f"STREAM_{context_key}_{device_type}_24H_TOTAL_ATTEMPTS"] = attempts
155
151
  return feats
156
152
 
157
153
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haystack-ml-stack
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Functions related to Haystack ML
5
5
  Author-email: Oscar Vega <oscar@haystack.tv>
6
6
  License: MIT