1
0
Fork 0

Python formatting

This commit is contained in:
Mouse Reeve 2022-07-07 12:23:10 -07:00
parent 76c466ee45
commit 742d97b177
3 changed files with 23 additions and 16 deletions

View file

@ -63,11 +63,12 @@ class ReadingStatus(View):
)
# invalidate related caches
cache.delete_many([
f"active_shelf-{request.user.id}-{ed}"
for ed in book.parent_work.editions.values_list("id", flat=True)
])
cache.delete_many(
[
f"active_shelf-{request.user.id}-{ed}"
for ed in book.parent_work.editions.values_list("id", flat=True)
]
)
# gets the first shelf that indicates a reading status, or None
shelves = [