# Update header Notification doesent disappaer after Update

**URL:** <https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360>\
**Category:** Anthias\
**Created:** [March 28, 2024, 9:05am UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360 "2024-03-28T09:05:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blizzarts](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/blizzarts/32/460_2.png) [@Blizzarts](https://forums.screenly.io/u/Blizzarts)\
**Post date:** [March 28, 2024, 9:05am UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360/1 "2024-03-28T09:05:28Z")

</div>

Hey,

Anthias told me there is an available update through web, so I run the upgrade command line /home/pi/screenly/bin/run\_upgrade.sh.  
After the upgrade was done, the notification did not disappear, so I tried it again, but it wouldn’t disappear.

Hope someone can help 🙂

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [April 2, 2024, 6:26pm UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360/2 "2024-04-02T18:26:27Z")

</div>

@Blizzarts, this is a known issue that needs to be fixed.  
If you’d like to dig deep, the following part of the code needs to be changed:

> <https://github.com/Screenly/Anthias/blob/503498e92ff06a98d6b7e89491d87c29180e1585/lib/github.py#L118>

The `is_up_to_date` function checks if the latest commit SHA (fetched from GitHub) is equal to the commit SHA stored in the Docker images.

Here’s a possible solution: Since the Docker tags of Anthias images has the short commit hash as the prefix (for instance: [Docker](https://hub.docker.com/r/screenly/anthias-server/tags)), we can check for the latest commit hash, Docker-Hub-wise. This can be achieved by doing an API call. For instance:

```bash
curl -sL https://hub.docker.com/v2/namespaces/screenly/repositories/anthias-server/tags | jq

```

Well, we can do the same thing by using the `requests` Python library.

---

<div class="post-metadata">

**Author:** ![Blizzarts](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/blizzarts/32/460_2.png) [@Blizzarts](https://forums.screenly.io/u/Blizzarts)\
**Post date:** [April 10, 2024, 6:50am UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360/3 "2024-04-10T06:50:47Z")

</div>

Hey thanks for the response, I directly pulled the newest docker from docker-hub, and now it works, the notification disappeared.  
thx for your help 😃

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [April 10, 2024, 2:56pm UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360/4 "2024-04-10T14:56:10Z")

</div>

Glad it helped. Thanks!  
I created this GitHub issue so that I can come back to it later: [Fix: Update header notification doesn't disappear after update. · Issue #1880 · Screenly/Anthias · GitHub](https://github.com/Screenly/Anthias/issues/1880). I’ll let you know when I created a pull request,

---

<div class="post-metadata">

**Author:** ![nicomiguelino](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@nicomiguelino](https://forums.screenly.io/u/nicomiguelino)\
**Post date:** [May 23, 2024, 12:41am UTC](https://forums.screenly.io/t/update-header-notification-doesent-disappaer-after-update/1360/5 "2024-05-23T00:41:38Z")

</div>

Hi, @Blizzarts. Here’s a link to the pull request that I just opened: [Fixes: Update header notification not disappearing after update by nicomiguelino · Pull Request #1903 · Screenly/Anthias · GitHub](https://github.com/Screenly/Anthias/pull/1903). You can check the description for details.

EDIT: I already merged the pull request and new Docker images has already been build. You can now update your Anthias instance, but make sure to backup your data.
