forked from sh-edraft.de/sh_discord_bot
Added server list to dashboard #72
This commit is contained in:
@@ -35,9 +35,6 @@ class ServerRepositoryService(ServerRepositoryABC):
|
||||
self._logger.trace(__name__, f'Send SQL command: {Server.get_select_all_string()}')
|
||||
query = servers
|
||||
|
||||
if criteria.name is not None and criteria.name != '':
|
||||
query = query.where(lambda x: criteria.name in x.first_name or x.first_name == criteria.name)
|
||||
|
||||
# sort
|
||||
if criteria.sort_column is not None and criteria.sort_column != '' and criteria.sort_direction is not None and criteria.sort_direction:
|
||||
crit_sort_direction = criteria.sort_direction.lower()
|
||||
|
Reference in New Issue
Block a user