Skip to content

Commit

Permalink
fix cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
ety001 committed Oct 11, 2024
1 parent f2d4cad commit a307b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hive/server/condenser_api/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def get_trending_tags(context, start_tag: str = '', limit: int = 250):
""" % seek

out = []
for row in await context['db'].query_all(sql, limit=limit, start_tag=start_tag, cache_key="get_trending_tags_"+start_tag+"_"+limit, cache_ttl=5*60):
for row in await context['db'].query_all(sql, limit=limit, start_tag=start_tag, cache_key=f"get_trending_tags_{start_tag}_{limit}", cache_ttl=5*60):
out.append({
'name': row['category'],
'comments': row['total_posts'] - row['top_posts'],
Expand Down

0 comments on commit a307b66

Please sign in to comment.