Skip to content

Commit 783463f

Browse files
NeptuneHubclaude
andcommitted
Fix CI import error: add like_contains_pattern, the missing half of the escaper consolidation
app_dashboard.py was committed importing database.like_contains_pattern but the database.py side of the pair was left uncommitted, so every module that imports app_dashboard failed collection with ImportError. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 54e4277 commit 783463f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

database.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,11 @@ def coerce_db_details(raw_details):
25332533
return {}
25342534

25352535

2536+
def like_contains_pattern(value):
2537+
escaped = value.replace('\\', '\\\\').replace('%', '\\%').replace('_', '\\_')
2538+
return '%' + escaped + '%'
2539+
2540+
25362541
def save_map_projection(index_name, id_map, projection_array):
25372542
conn = get_db()
25382543
try:

0 commit comments

Comments
 (0)