This commit is contained in:
@ -88,7 +88,7 @@ fetching and simple saving.
|
|||||||
*** Metadata sources
|
*** Metadata sources
|
||||||
**** Scraper
|
**** Scraper
|
||||||
|
|
||||||
* Backlog [0/20] :vrobbler:project:personal:
|
* Backlog [1/21] :vrobbler:project:personal:
|
||||||
** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles:
|
** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:ID: 702462cf-d54b-48c6-8a7c-78b8de751deb
|
:ID: 702462cf-d54b-48c6-8a7c-78b8de751deb
|
||||||
@ -590,6 +590,10 @@ We should rename `email_scrobble_board_game` to reflect the fact that it's just
|
|||||||
a helper method to create board game scrobbles given a json blob. It's
|
a helper method to create board game scrobbles given a json blob. It's
|
||||||
independent of the email flow it was originally creatdd for
|
independent of the email flow it was originally creatdd for
|
||||||
|
|
||||||
|
** DONE [#A] Concurrent listening trend is inefficient and should be disabled :trends:scrobbles:
|
||||||
|
:PROPERTIES:
|
||||||
|
:ID: 4aa3b719-6b22-cae9-85f0-fac67b4fc753
|
||||||
|
:END:
|
||||||
* Version 54.0 [3/3]
|
* Version 54.0 [3/3]
|
||||||
** DONE [#B] Add peak hour, weekly rhythm and activity dist trends :trends:scrobbles:
|
** DONE [#B] Add peak hour, weekly rhythm and activity dist trends :trends:scrobbles:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|||||||
@ -3,37 +3,34 @@ from trends.trends.activity import (
|
|||||||
compute_peak_hours,
|
compute_peak_hours,
|
||||||
compute_weekly_rhythm,
|
compute_weekly_rhythm,
|
||||||
)
|
)
|
||||||
from trends.trends.concurrent import compute_concurrent_listening, compute_concurrent_reading
|
from trends.trends.concurrent import (
|
||||||
|
compute_concurrent_listening,
|
||||||
|
compute_concurrent_reading,
|
||||||
|
)
|
||||||
from trends.trends.reading import compute_reading_pace_vs_activity
|
from trends.trends.reading import compute_reading_pace_vs_activity
|
||||||
from trends.trends.trending import compute_trending_up
|
from trends.trends.trending import compute_trending_up
|
||||||
|
|
||||||
TREND_REGISTRY = {}
|
TREND_REGISTRY = {}
|
||||||
|
|
||||||
|
|
||||||
def register(slug):
|
def register(slug):
|
||||||
def decorator(fn):
|
def decorator(fn):
|
||||||
TREND_REGISTRY[slug] = fn
|
TREND_REGISTRY[slug] = fn
|
||||||
return fn
|
return fn
|
||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
compute_activity_distribution = register("activity-distribution")(
|
compute_activity_distribution = register("activity-distribution")(
|
||||||
compute_activity_distribution
|
compute_activity_distribution
|
||||||
)
|
)
|
||||||
compute_concurrent_listening = register("concurrent-listening")(
|
# compute_concurrent_listening = register("concurrent-listening")(
|
||||||
compute_concurrent_listening
|
# compute_concurrent_listening
|
||||||
)
|
# )
|
||||||
compute_concurrent_reading = register("concurrent-reading")(
|
compute_concurrent_reading = register("concurrent-reading")(compute_concurrent_reading)
|
||||||
compute_concurrent_reading
|
compute_peak_hours = register("peak-hours")(compute_peak_hours)
|
||||||
)
|
|
||||||
compute_peak_hours = register("peak-hours")(
|
|
||||||
compute_peak_hours
|
|
||||||
)
|
|
||||||
compute_reading_pace_vs_activity = register("reading-pace-vs-activity")(
|
compute_reading_pace_vs_activity = register("reading-pace-vs-activity")(
|
||||||
compute_reading_pace_vs_activity
|
compute_reading_pace_vs_activity
|
||||||
)
|
)
|
||||||
compute_trending_up = register("trending-up")(
|
compute_trending_up = register("trending-up")(compute_trending_up)
|
||||||
compute_trending_up
|
compute_weekly_rhythm = register("weekly-rhythm")(compute_weekly_rhythm)
|
||||||
)
|
|
||||||
compute_weekly_rhythm = register("weekly-rhythm")(
|
|
||||||
compute_weekly_rhythm
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user