Exclude geo locs from now playing
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import pytz
|
||||
from django.utils import timezone
|
||||
from scrobbles.models import Scrobble
|
||||
|
||||
from scrobbles.constants import EXCLUDE_FROM_NOW_PLAYING
|
||||
from scrobbles.models import Scrobble
|
||||
|
||||
def now_playing(request):
|
||||
user = request.user
|
||||
@ -13,5 +14,7 @@ def now_playing(request):
|
||||
in_progress=True,
|
||||
is_paused=False,
|
||||
user=user,
|
||||
).exclude(
|
||||
media_type__in=EXCLUDE_FROM_NOW_PLAYING,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user