Compare commits
No commits in common. "fdc03457d04751a34fbf284738f3337cde669b18" and "02b746c5adb09440d091c1730549423c8ba930d8" have entirely different histories.
fdc03457d0
...
02b746c5ad
@ -64,9 +64,8 @@ class ProjectRepository:
|
||||
if status_in is not None:
|
||||
query = query.where(Project.status.in_(status_in))
|
||||
if search is not None and (normalized_search := search.strip()):
|
||||
normalized_search = normalized_search.replace('\\', '\\\\').replace('%', '\\%').replace('_', '\\_')
|
||||
search_pattern = (
|
||||
f"%{normalized_search}%"
|
||||
f"%{normalized_search.replace('\\', '\\\\').replace('%', '\\%').replace('_', '\\_')}%"
|
||||
)
|
||||
matching_year_exists = exists(
|
||||
select(1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user