apps: modernize for python3

This commit is contained in:
RhodeCode Admin 2023-07-18 14:24:37 +02:00
parent 230f12827e
commit 4026ee36ee
97 changed files with 72 additions and 254 deletions

View file

@ -1,5 +1,3 @@
# Copyright (C) 2016-2023 RhodeCode GmbH
#
# This program is free software: you can redistribute it and/or modify
@ -182,7 +180,7 @@ class AdminRepoGroupsView(BaseAppView, DataGridAppView):
base_q = base_q.group_by(RepoGroup, OwnerUser)
if search_q:
like_expression = u'%{}%'.format(safe_str(search_q))
like_expression = f'%{safe_str(search_q)}%'
base_q = base_q.filter(or_(
RepoGroup.group_name.ilike(like_expression),
))