Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused around_the_library.html and get_random_recent_changes #9926

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4634,7 +4634,7 @@ msgid ""
"something new."
msgstr ""

#: home/stats.html site/around_the_library.html
#: home/stats.html
msgid "Around the Library"
msgstr ""

Expand Down Expand Up @@ -5908,7 +5908,6 @@ msgid "expand"
msgstr ""

#: recentchanges/default/message.html recentchanges/edit-book/message.html
#: site/around_the_library.html
msgid "opened a new Open Library account!"
msgstr ""

Expand Down Expand Up @@ -6251,10 +6250,6 @@ msgstr ""
msgid "Internet Archive logo"
msgstr ""

#: site/around_the_library.html
msgid "View all recent changes"
msgstr ""

#: site/body.html
msgid "It looks like you're offline."
msgstr ""
Expand Down
14 changes: 0 additions & 14 deletions openlibrary/plugins/upstream/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,20 +1385,6 @@ def render(c):


@public
def get_random_recent_changes(n):
if "recentchanges_v2" in web.ctx.get("features", []):
changes = _get_recent_changes2()
else:
changes = _get_recent_changes()

_changes = random.sample(changes, n) if len(changes) > n else changes
for _, change in enumerate(_changes):
change['__body__'] = (
change['__body__'].replace('<script>', '').replace('</script>', '')
)
return _changes


def _get_blog_feeds():
url = "https://blog.openlibrary.org/feed/"
try:
Expand Down
46 changes: 0 additions & 46 deletions openlibrary/templates/site/around_the_library.html

This file was deleted.

Loading