Skip to content

Commit

Permalink
(fix) dismissing site messages such as discord banner
Browse files Browse the repository at this point in the history
Signed-off-by: miigotu <[email protected]>
  • Loading branch information
miigotu committed Jun 28, 2023
1 parent 3247f06 commit baaec62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickchill/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_site_messages(self):
return settings.SITE_MESSAGES

def dismiss_site_message(self):
index = self.get_query_argument("index")
index = self.get_argument("index")
self.set_header("Cache-Control", "max-age=0,no-cache,no-store")
helpers.remove_site_message(key=index)
return settings.SITE_MESSAGES
Expand Down

0 comments on commit baaec62

Please sign in to comment.