bookwyrm/bookwyrm
Neil Roberts b0f90d05f2 Move the shelf names to a dict instead of a chain of if statements
The main reason to do this is that if we try to add another name then
pylint will complain that there are too many return statements. It might
be slightly faster too.

If I understand correctly it doesn’t matter that the _ function is being
called at module load time because it is mapped to gettext_lazy so the
actual translation will be done when the string is used.
2023-04-06 16:02:24 +02:00
..
activitypub Merge pull request #2524 from chdorner/feature/tag-support 2023-03-12 16:37:39 -07:00
connectors Ignore Celery task results 2023-03-08 02:12:13 -05:00
forms Merge branch 'main' into totp-window 2023-02-27 18:21:39 +11:00
importers Fixed Import limit for retries 2023-01-17 01:07:10 +01:00
management/commands Merge pull request #2604 from rrgeorge/redis-sockets 2023-01-26 06:39:15 -08:00
middleware Adds IP blocklist views 2021-09-17 13:04:10 -07:00
migrations Adds Esperanto locale 2023-03-28 15:03:40 -07:00
models Merge pull request #2524 from chdorner/feature/tag-support 2023-03-12 16:37:39 -07:00
static Refixing light and dark themes 2023-03-29 10:56:08 +00:00
telemetry Add more detailed telemetry for get_audience 2023-03-20 20:51:20 -04:00
templates Use the translated shelf name in a book’s shelf list 2023-04-06 15:58:20 +02:00
templatetags Move the shelf names to a dict instead of a chain of if statements 2023-04-06 16:02:24 +02:00
tests Python formatting 2023-03-29 10:13:44 -07:00
utils Add helper to refer views back to http referers safely 2023-03-20 10:25:38 -07:00
views Merge pull request #2766 from bookwyrm-social/redirect-in-admin 2023-04-01 11:06:42 +02:00
__init__.py
activitystreams.py Add more detailed telemetry for get_audience 2023-03-20 20:51:20 -04:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Add setting for OpenTelemetry console exporter 2023-03-18 15:47:30 -04:00
book_search.py {list} Fix duplicate suggestions in Add Books section 2023-01-10 11:08:11 -05:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
preview_images.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
redis_store.py Add support for specifying redis url to support unix sockets 2023-01-14 14:52:54 -08:00
settings.py Update version number 2023-04-03 21:31:41 -07:00
signatures.py increasing rsa key size 2023-02-20 21:51:50 +01:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py Enable Azure BlobStorage as an alternative to AWS S3 2023-03-05 12:08:16 -05:00
suggested_users.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
tasks.py Use a separate queue for broadcasts 2023-02-20 12:58:41 -08:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Use context processor for 500 page 2023-03-13 03:47:23 -04:00
wsgi.py