support into master #371

Merged
edraft merged 46 commits from support into master 2023-09-27 20:46:54 +02:00
Showing only changes of commit 85852bf2f0 - Show all commits

View File

@ -40,6 +40,9 @@ class LevelService:
def get_level(self, user: User) -> Level:
levels_by_server = self._levels.get_levels_by_server_id(user.server.id)
if user.xp < 0:
levels_by_server.first()
levels = levels_by_server.order_by(lambda l: l.min_xp).where(lambda l: user.xp >= l.min_xp)
if levels.count() == 0: