Skip to content

Commit

Permalink
Fix logics
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 29, 2024
1 parent 8ca28cc commit 2435bf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/collective/feedback/restapi/services/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def get_data(self):
data["vote_sum"] += vote

# Sign if page has unread comments
data["has_unread"] = data.get("has_unread", False) or feedback._attrs.get(
"read", False
)
data["has_unread"] = data.get(
"has_unread", False
) or not feedback._attrs.get("read", False)

# number of comment
comment = feedback._attrs.get("comment", "")
Expand Down

0 comments on commit 2435bf9

Please sign in to comment.