From f72b678f616295ffe2fb698e8d36bd1437fa8464 Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Thu, 2 Oct 2014 13:02:59 +0200 Subject: [PATCH] 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). --- mutalyzer/announce.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mutalyzer/announce.py b/mutalyzer/announce.py index 5fb484dc..d8acbe4d 100644 --- a/mutalyzer/announce.py +++ b/mutalyzer/announce.py @@ -18,6 +18,7 @@ def set_announcement(body, url=None): if url: announcement['url'] = url + unset_announcement() client.hmset('announcement', announcement) -- GitLab