Skip to content

Commit

Permalink
Removed double import
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMwangi21 committed Nov 28, 2024
1 parent 62dd304 commit 114a507
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion server/planning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""Superdesk Planning Plugin."""

import logging
from server.planning.commands.delete_spiked_items import delete_spiked_items_handler
import superdesk
from quart_babel import lazy_gettext

Expand Down
2 changes: 1 addition & 1 deletion server/planning/events/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def get_expired_items(
Where end date is in the past
"""
query = {
query: dict[str, Any] = {
"query": {"bool": {"must_not": [{"term": {"expired": True}}]}},
"filter": {"range": {"dates.end": {"lte": date_to_str(expiry_datetime)}}},
"sort": [{"dates.start": "asc"}],
Expand Down
2 changes: 1 addition & 1 deletion server/planning/planning/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def get_expired_items(
}
}
range_filter = {"range": {"planning_date": {"gt": date_to_str(expiry_datetime)}}}
query = {
query: dict[str, Any] = {
"query": {
"bool": {
"must_not": [
Expand Down

0 comments on commit 114a507

Please sign in to comment.