hgsrht: Fix repository deletion notices
1 files changed, 5 insertions(+), 1 deletions(-)

M hgsrht/app.py
M hgsrht/app.py +5 -1
@@ 4,7 4,7 @@ import os.path
 import stat
 from srht.config import cfg
 from srht.database import db, DbSession
-from srht.flask import SrhtFlask
+from srht.flask import SrhtFlask, session
 from srht.oauth import AbstractOAuthService
 from hgsrht.hgwebshim import HgWebShim
 from hgsrht.service import oauth_service, webhooks_notify

          
@@ 47,9 47,13 @@ class HgApp(SrhtFlask):
 
         @self.context_processor
         def inject():
+            notice = session.get("notice")
+            if notice:
+                del session["notice"]
             return {
                 "stat": stat,
                 "humanize": humanize,
+                "notice": notice,
                 "path_join": os.path.join,
                 "scmname": "hg",
                 "scmreflabel": "rev",