Skip to content

Commit

Permalink
use logical AND not OR (mozilla#5889)
Browse files Browse the repository at this point in the history
  • Loading branch information
escattone authored Feb 16, 2024
1 parent 8aba5f1 commit b11d5a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kitsune/dashboards/readouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
is_ready_for_localization=False do not exist.
"""

import logging
from collections import OrderedDict
from datetime import datetime
Expand Down Expand Up @@ -57,8 +58,8 @@
is_approved=True,
)
.filter(
Q(id__lte=F("document__latest_localizable_revision__id"))
| Q(id__gt=OuterRef("transdoc_current_revision_based_on_id")),
id__gt=OuterRef("transdoc_current_revision_based_on_id"),
id__lte=F("document__latest_localizable_revision__id"),
)
.order_by()
.values("document")
Expand Down

0 comments on commit b11d5a8

Please sign in to comment.