Skip to content

Commit 03d7f9e

Browse files
authored
[PAY-3946] Fix multiple plays in same batch breaking listen streak (#11380)
1 parent 4066498 commit 03d7f9e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
BEGIN;
2+
-- Adding this comment to trigger this again
23
delete from user_challenges where challenge_id = 'e';
34
COMMIT;

packages/discovery-provider/src/challenges/listen_streak_endless_challenge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def generate_specifier(self, session: Session, user_id: int, extra: Dict) -> str
9292
created_at = datetime.fromtimestamp(extra["created_at"])
9393
formatted_date = created_at.strftime("%Y%m%d")
9494
if env == "stage":
95-
formatted_date = created_at.strftime("%Y%m%d%H%M%S")
95+
formatted_date = created_at.strftime("%Y%m%d%H%M")
9696
return f"{hex(user_id)[2:]}_{formatted_date}"
9797

9898
def should_create_new_challenge(

0 commit comments

Comments
 (0)