mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -7,12 +7,12 @@ from zerver.models import MutedTopic
|
||||
|
||||
|
||||
class StreamTopicTarget:
|
||||
'''
|
||||
"""
|
||||
This class is designed to help us move to a
|
||||
StreamTopic table or something similar. It isolates
|
||||
places where we are are still using `topic_name` as
|
||||
a key into tables.
|
||||
'''
|
||||
"""
|
||||
|
||||
def __init__(self, stream_id: int, topic_name: str) -> None:
|
||||
self.stream_id = stream_id
|
||||
@@ -25,10 +25,7 @@ class StreamTopicTarget:
|
||||
).values(
|
||||
'user_profile_id',
|
||||
)
|
||||
return {
|
||||
row['user_profile_id']
|
||||
for row in query
|
||||
}
|
||||
return {row['user_profile_id'] for row in query}
|
||||
|
||||
def get_active_subscriptions(self) -> QuerySet:
|
||||
return get_active_subscriptions_for_stream_id(self.stream_id)
|
||||
|
||||
Reference in New Issue
Block a user