[tasks] Fix bug in looking up user profile
This commit is contained in:
@ -144,7 +144,7 @@ def emacs_webhook(request):
|
|||||||
if not user_id:
|
if not user_id:
|
||||||
user_id = 1
|
user_id = 1
|
||||||
|
|
||||||
user_profile = UserProfile.objects.filter(user_id=user_id)
|
user_profile = UserProfile.objects.filter(user_id=user_id).first()
|
||||||
|
|
||||||
scrobble = None
|
scrobble = None
|
||||||
if post_data.get("source_id"):
|
if post_data.get("source_id"):
|
||||||
|
|||||||
Reference in New Issue
Block a user