mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-06-06 07:48:49 +00:00
Update annual_summary.py
This commit is contained in:
parent
fd8423b73c
commit
6e8a29aebf
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@ def get_goal_status(user, year):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
goal = models.AnnualGoal.objects.get(user=user, year=year)
|
goal = models.AnnualGoal.objects.get(user=user, year=year)
|
||||||
except ObjectDoesNotExist:
|
except models.AnnualGoal.DoesNotExist:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if goal.privacy != "public":
|
if goal.privacy != "public":
|
||||||
|
|
Loading…
Reference in a new issue