Skip to content

Commit

Permalink
maybe fixed better
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC committed Jan 19, 2024
1 parent c3f8e30 commit db5c862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/ShiftLogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ async def shift_leaderboard(self, ctx: commands.Context, *, type: str = None):
all_staff = []

async def load_leaderboard(shift_type=None, batch_size=25):
pipeline = list(filter(lambda x: x is not None, [
pipeline = list(filter(lambda x: x not in [{}, None], [
{"$match": {"Guild": 987798554972143728}},
{"$match": {"Type": shift_type}} if shift_type is not None else None,
{"$group": {
Expand Down

0 comments on commit db5c862

Please sign in to comment.