mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
Removed unused helper function
This commit is contained in:
parent
f4dd14acad
commit
f5638c1e44
1 changed files with 0 additions and 7 deletions
|
@ -148,13 +148,6 @@ def handle_reading_status(user, shelf, book, privacy):
|
||||||
status.save()
|
status.save()
|
||||||
|
|
||||||
|
|
||||||
def is_blocked(viewer, user):
|
|
||||||
"""is this viewer blocked by the user?"""
|
|
||||||
if viewer.is_authenticated and viewer in user.blocks.all():
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def load_date_in_user_tz_as_utc(date_str: str, user: models.User) -> datetime:
|
def load_date_in_user_tz_as_utc(date_str: str, user: models.User) -> datetime:
|
||||||
"""ensures that data is stored consistently in the UTC timezone"""
|
"""ensures that data is stored consistently in the UTC timezone"""
|
||||||
if not date_str:
|
if not date_str:
|
||||||
|
|
Loading…
Reference in a new issue