Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 31, 2024
1 parent 83c2483 commit 782f65c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collective/feedback/restapi/services/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ def get_data(self):

pages_to_remove = []

has_undread = query.get("has_unread", None)

for uid, feedback in feedbacks.items():
# avg calculation
feedback["vote"] = feedback.pop("vote_sum") / feedback.pop("vote_num")

has_undread = query.get("has_unread", None)

# Use has_unread filter
if has_undread is not None:
if has_undread in ("true", "false"):
Expand Down

0 comments on commit 782f65c

Please sign in to comment.