Merge branch 'master' into staging
All checks were successful
Deploy staging on push / pre-build (push) Successful in 2s
Deploy staging on push / build-bot (push) Successful in 3m6s
Deploy staging on push / build-web (push) Successful in 1m43s
Deploy staging on push / deploy (push) Successful in 24s

This commit is contained in:
Sven Heidemann 2024-01-13 15:00:11 +01:00
commit d67ba924dc
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,8 @@ class LevelRepositoryService(LevelRepositoryABC):
int(self._get_value_from_result(sql_result[3])), # min xp
int(self._get_value_from_result(sql_result[4])), # permissions
self._servers.get_server_by_id(sql_result[5]), # server
sql_result[6], # created_at
sql_result[7], # modified_at
id=self._get_value_from_result(sql_result[0]), # id
)

View File

@ -77,7 +77,7 @@ class ServerQuery(DataQueryWithHistoryABC):
)
self.add_collection(
"level",
lambda server, *_: self._levels.get_levels_by_server_id(server.id),
lambda server, *_: self._levels.get_levels_by_server_id(server.id).order_by_descending(lambda x: x.min_xp),
LevelFilter,
)
self.set_field(