diff --git a/customiwmserver/main.py b/customiwmserver/main.py index 53f1bc6..0614f02 100644 --- a/customiwmserver/main.py +++ b/customiwmserver/main.py @@ -195,7 +195,12 @@ async def stopMapPlay( print(BestUserTime, BestTime) if BestUserTime is None or playtime < BestUserTime: print(BestUserTime) - + + updateQuery = db.maps_collection.update_one( + {"ID": mapID}, + {"$pull": {"Leaderboard": {"UserID": userData.ID}} + } + ) updateQuery = db.maps_collection.update_one( {"ID": mapID}, {