bookwyrm/bookwyrm
Bart Schuurmans ffee29d8e2 Fix resource leaks
Rewrite places where files (or other resources) are opened but not closed to "with" blocks, which
automatically call close() at the end of the scope.

Also simplify some tests where images need to be saved to a model field: an opened file can be
passed directly to FileField.save().
2024-03-29 20:14:10 +01:00
..
activitypub Merge pull request #3303 from MaggieFero/main 2024-03-13 15:28:54 -07:00
connectors Fix spacing for linter 2024-03-02 17:31:16 -08:00
forms Merge pull request #3275 from ccamara/wikidata 2024-03-23 08:12:09 -07:00
importers stop pylint constantly whining 2023-10-28 06:51:26 +11:00
isbn Add timeout to isbn.py 2024-03-01 19:58:11 -08:00
management Merge branch 'main' into check-version-number 2024-02-03 08:02:15 -08:00
middleware middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
migrations Include Author aliases in Book search vector 2024-03-23 19:26:51 +01:00
models Fix detection of unlisted posts (#3258) 2024-03-27 16:29:09 -03:00
static Adding FictionBook format ("FB2", "FB3") to autocomplete options in "Get a copy" block. 2024-01-25 01:50:10 +03:00
telemetry Added mypy to scripts and workflow, and some first annotations for celerywyrm 2023-07-22 13:27:43 +02:00
templates Updates locales and adds missing trimmed on blocktrans 2024-03-25 16:13:00 -07:00
templatetags fix multiple issues from user exports config changes 2024-01-20 13:19:13 +11:00
tests Fix resource leaks 2024-03-29 20:14:10 +01:00
utils Merge from main into 'trigger_migrations' 2024-03-17 21:54:15 -03:00
views Switch author search from TrigramSimilarity to SearchQuery 2024-03-23 19:26:51 +01:00
__init__.py
activitystreams.py fix illegal values in redis jobs 2023-08-19 08:34:03 +10:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Font download: log the exact error 2024-03-18 20:34:47 +01:00
book_search.py Merge branch 'main' into let-a-user-search-within-their-books 2023-12-14 10:25:05 -08:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
preview_images.py Fix resource leaks 2024-03-29 20:14:10 +01:00
redis_store.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
settings.py Fix resource leaks 2024-03-29 20:14:10 +01:00
signatures.py fix tests and formatting 2023-04-13 22:33:54 +10: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 hide instance actor from users 2023-11-20 12:17:52 +11:00
tasks.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Merge branch 'main' into check-version-number 2024-02-03 08:02:15 -08:00
wsgi.py