simonw / museums

A website recommending niche museums to visit

Home Page:https://www.niche-museums.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hiller Aviation Museum listed twice

simonw opened this issue · comments

On the "near you" page:

25362A9D-294D-4AEE-B880-DF4AA385B6A5

This is because it's in the current production DB twice: https://www.niche-museums.com/browse/museums?_search=hiller&_sort=id

Even though it's only in the YAML file once:

museums/museums.yaml

Lines 2607 to 2610 in d2b6666

-
id: 103
name: Hiller Aviation Museum
url: https://www.hiller.org/

I deleted it a while back in 25f4dbb and set up a redirect from 6 to 103 here:

@hookimpl
def register_routes():
return [
(r"^/6$", lambda: Response.redirect("/103", status=301)),
(r"^/browse/museums/(?P<id>\d+)$", redirect_museum),
]

But I didn't actually delete the record, and since the DB is copied down and updated on each deploy the old record persisted.

I'm going to fix this by getting the deploy script to delete that old record.