Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Migrate legacy SQLAlchemy select syntax.
Anders Kaseorgdd0d482d7679
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.pyindex 62f4873bfef..80e12f7f4a8 100644--- a/zerver/lib/narrow.py+++ b/zerver/lib/narrow.py@@ -354,7 +354,7 @@ class NarrowBuilder:# If the initial query doesn't use `zerver_usermessage`check_col = literal_column("zerver_message.id", Integer)exists_cond = (- select([1])+ select(1).select_from(table("zerver_reaction")).where(check_col == literal_column("zerver_reaction.message_id", Integer)).exists()diff --git a/zerver/lib/topic_sqlalchemy.py b/zerver/lib/topic_sqlalchemy.pyindex 9dfd9c7e8d6..c1cf024014d 100644--- a/zerver/lib/topic_sqlalchemy.py+++ b/zerver/lib/topic_sqlalchemy.py@@ -23,7 +23,7 @@ def topic_column_sa() -> ColumnElement[Text]:def get_followed_topic_condition_sa(user_id: int) -> ColumnElement[Boolean]:follow_topic_cond = (- select([1])+ select(1).select_from(table("zerver_usertopic")).where(and_(