Skip to content
Snippets Groups Projects
Commit f72b678f authored by Vermaat's avatar Vermaat
Browse files

Remove old announcement before setting new one

This prevents the case where the old announcement had a url set and the
new one does not (Redis would keep the existing url).
parent 8193dfd2
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ def set_announcement(body, url=None):
if url:
announcement['url'] = url
unset_announcement()
client.hmset('announcement', announcement)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment