File tree Expand file tree Collapse file tree 5 files changed +93
-12
lines changed Expand file tree Collapse file tree 5 files changed +93
-12
lines changed Original file line number Diff line number Diff line change 1- # flake8: noqa
21from .bot import (
3- FilterList ,
4- Filter ,
2+ AocAccountLink ,
3+ AocCompletionistBlock ,
54 BotSetting ,
65 BumpedThread ,
7- DocumentationLink ,
86 DeletedMessage ,
7+ DocumentationLink ,
8+ Filter ,
9+ FilterList ,
910 Infraction ,
1011 MailingList ,
1112 MailingListSeenItem ,
1415 Nomination ,
1516 NominationEntry ,
1617 OffensiveMessage ,
17- AocAccountLink ,
18- AocCompletionistBlock ,
1918 OffTopicChannelName ,
2019 Reminder ,
2120 Role ,
2221 User ,
23- UserAltRelationship
22+ UserAltRelationship ,
23+ )
24+
25+ __all__ = (
26+ "AocAccountLink" ,
27+ "AocCompletionistBlock" ,
28+ "BotSetting" ,
29+ "BumpedThread" ,
30+ "DeletedMessage" ,
31+ "DocumentationLink" ,
32+ "Filter" ,
33+ "FilterList" ,
34+ "Infraction" ,
35+ "MailingList" ,
36+ "MailingListSeenItem" ,
37+ "Message" ,
38+ "MessageDeletionContext" ,
39+ "Nomination" ,
40+ "NominationEntry" ,
41+ "OffTopicChannelName" ,
42+ "OffensiveMessage" ,
43+ "Reminder" ,
44+ "Role" ,
45+ "User" ,
46+ "UserAltRelationship"
2447)
Original file line number Diff line number Diff line change 1- # flake8: noqa
21from .filters import FilterList , Filter
32from .bot_setting import BotSetting
43from .bumped_thread import BumpedThread
1716from .reminder import Reminder
1817from .role import Role
1918from .user import User , UserAltRelationship
19+
20+ __all__ = (
21+ "AocAccountLink" ,
22+ "AocCompletionistBlock" ,
23+ "BotSetting" ,
24+ "BumpedThread" ,
25+ "DeletedMessage" ,
26+ "DocumentationLink" ,
27+ "Filter" ,
28+ "FilterList" ,
29+ "Infraction" ,
30+ "MailingList" ,
31+ "MailingListSeenItem" ,
32+ "Message" ,
33+ "MessageDeletionContext" ,
34+ "Nomination" ,
35+ "NominationEntry" ,
36+ "OffTopicChannelName" ,
37+ "OffensiveMessage" ,
38+ "Reminder" ,
39+ "Role" ,
40+ "User" ,
41+ "UserAltRelationship" ,
42+ )
Original file line number Diff line number Diff line change 1- # flake8: noqa
21from .bot import (
32 AocAccountLinkViewSet ,
43 AocCompletionistBlockViewSet ,
76 DeletedMessageViewSet ,
87 DocumentationLinkViewSet ,
98 FilterListViewSet ,
10- FilterListViewSet ,
119 FilterViewSet ,
1210 InfractionViewSet ,
1311 MailingListViewSet ,
1816 RoleViewSet ,
1917 UserViewSet
2018)
19+
20+ __all__ = (
21+ "AocAccountLinkViewSet" ,
22+ "AocCompletionistBlockViewSet" ,
23+ "BotSettingViewSet" ,
24+ "BumpedThreadViewSet" ,
25+ "DeletedMessageViewSet" ,
26+ "DocumentationLinkViewSet" ,
27+ "FilterListViewSet" ,
28+ "FilterViewSet" ,
29+ "InfractionViewSet" ,
30+ "MailingListViewSet" ,
31+ "NominationViewSet" ,
32+ "OffTopicChannelNameViewSet" ,
33+ "OffensiveMessageViewSet" ,
34+ "ReminderViewSet" ,
35+ "RoleViewSet" ,
36+ "UserViewSet" ,
37+ )
Original file line number Diff line number Diff line change 1- # flake8: noqa
21from .aoc_completionist_block import AocCompletionistBlockViewSet
32from .aoc_link import AocAccountLinkViewSet
43from .bot_setting import BotSettingViewSet
1413from .reminder import ReminderViewSet
1514from .role import RoleViewSet
1615from .user import UserViewSet
16+
17+ __all__ = (
18+ "AocAccountLinkViewSet" ,
19+ "AocCompletionistBlockViewSet" ,
20+ "BotSettingViewSet" ,
21+ "BumpedThreadViewSet" ,
22+ "DeletedMessageViewSet" ,
23+ "DocumentationLinkViewSet" ,
24+ "FilterListViewSet" ,
25+ "FilterViewSet" ,
26+ "InfractionViewSet" ,
27+ "MailingListViewSet" ,
28+ "NominationViewSet" ,
29+ "OffTopicChannelNameViewSet" ,
30+ "OffensiveMessageViewSet" ,
31+ "ReminderViewSet" ,
32+ "RoleViewSet" ,
33+ "UserViewSet" ,
34+ )
Original file line number Diff line number Diff line change @@ -531,6 +531,6 @@ def metricity_activity_data(self, request: Request) -> Response:
531531 with Metricity () as metricity :
532532 data = metricity .total_messages_in_past_n_days (user_ids , days )
533533
534- default_data = { user_id : 0 for user_id in user_ids }
534+ default_data = dict . fromkeys ( user_ids , 0 )
535535 response_data = default_data | dict (data )
536536 return Response (response_data , status = status .HTTP_200_OK )
You can’t perform that action at this time.
0 commit comments