Skip to content

Commit

Permalink
Format truncated notes in calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
alex9smith committed Dec 5, 2024
1 parent 5e39567 commit 153ebdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/models/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ def get_summary_for_day(self, day: date) -> str | None:
if recipe:
return recipe["name"]
else:
return notes[:30]
if len(notes) < 30:
return notes
else:
return notes[:30] + "..."

0 comments on commit 153ebdc

Please sign in to comment.