Skip to content

Commit 7bfd248

Browse files
ericholscheragjohnson
authored andcommitted
Index the slug, not the project repr (#2797)
1 parent f5d5081 commit 7bfd248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/donate/signals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ def index_theme_data(sender, **kwargs):
225225

226226
try:
227227
redis_client = cache.get_client(None)
228-
redis_client.sadd("readthedocs:v1:index:themes:%s" % theme, project)
228+
redis_client.sadd("readthedocs:v1:index:themes:%s" % theme, project.slug)
229229
except (AttributeError, redis.exceptions.ConnectionError):
230230
log.warning('Redis theme indexing error: %s', exc_info=True)

0 commit comments

Comments
 (0)