sharding (general): Add launch data filters.
Filter cached reaction role messages by shardid. Filter expiring rented room by shardid. Filter scanned study badges by shardid. Filter resumed study sessions by shardid. Filter resumed workouts by shardid. Fix a spacing issue in the log printer.
This commit is contained in:
@@ -5,6 +5,7 @@ import datetime
|
||||
from cmdClient.lib import SafeCancellation
|
||||
|
||||
from meta import client
|
||||
from data.conditions import THIS_SHARD
|
||||
from settings import GuildSettings
|
||||
|
||||
from .data import rented, rented_members
|
||||
@@ -276,7 +277,7 @@ class Room:
|
||||
|
||||
@module.launch_task
|
||||
async def load_rented_rooms(client):
|
||||
rows = rented.fetch_rows_where()
|
||||
rows = rented.fetch_rows_where(guildid=THIS_SHARD)
|
||||
for row in rows:
|
||||
Room(row.channelid).schedule()
|
||||
client.log(
|
||||
|
||||
Reference in New Issue
Block a user