Skip to content

Commit f24d84c

Browse files
committed
fixed TypeError: not all arguments converted during string formatting
1 parent 81efd16 commit f24d84c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

functions-python/update_feed_status/tests/test_update_feed_status_main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
import os
1515

16-
from sqlalchemy import text
1716
from sqlalchemy.orm import Session
1817

1918

@@ -30,8 +29,8 @@ def fetch_feeds(session: Session) -> Iterator[PartialFeed]:
3029
# When adding or removing fields here, `PartialFeed` should be updated to
3130
# match, for type safety.
3231
query = session.query(Feed.id, Feed.status).filter(
33-
Feed.status != text("'deprecated'::status"),
34-
Feed.status != text("'development'::status"),
32+
Feed.status != "deprecated",
33+
Feed.status != "development",
3534
)
3635
for feed in query:
3736
yield PartialFeed(id=feed.id, status=feed.status)

0 commit comments

Comments
 (0)