Skip to content

Commit

Permalink
fix: resolve syntax error in cl/api/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leohentschker committed Dec 22, 2024
1 parent 6c7d223 commit 87d356d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cl/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,13 @@ def invert_user_logs(
:return The inverted dictionary
"""
r = get_redis_interface("STATS")
pipe = r.pipeline()

dates = make_date_str_list(start, end)

versions = ["v3", "v4"]

for version in versions:
pipe = r.pipeline()
for d in dates:
pipe.zrange(
f"api:{version}.user.d:{d}.counts", 0, -1, withscores=True
Expand Down

0 comments on commit 87d356d

Please sign in to comment.