ModUI: Allow LIKE matching for address filtering
This commit is contained in:
parent
3d1facaec3
commit
c189c47306
1 changed files with 1 additions and 1 deletions
2
mod.py
2
mod.py
|
@ -73,7 +73,7 @@ class NullptrMod(Screen):
|
||||||
case 1:
|
case 1:
|
||||||
try: ftable.query = ftable.base_query.filter(File.id == su.debase(message.value))
|
try: ftable.query = ftable.base_query.filter(File.id == su.debase(message.value))
|
||||||
except ValueError: pass
|
except ValueError: pass
|
||||||
case 2: ftable.query = ftable.base_query.filter(File.addr == message.value)
|
case 2: ftable.query = ftable.base_query.filter(File.addr.like(message.value))
|
||||||
case 3: ftable.query = ftable.base_query.filter(File.mime.like(message.value))
|
case 3: ftable.query = ftable.base_query.filter(File.mime.like(message.value))
|
||||||
case 4: ftable.query = ftable.base_query.filter(File.ext.like(message.value))
|
case 4: ftable.query = ftable.base_query.filter(File.ext.like(message.value))
|
||||||
case 5: ftable.query = ftable.base_query.filter(File.ua.like(message.value))
|
case 5: ftable.query = ftable.base_query.filter(File.ua.like(message.value))
|
||||||
|
|
Loading…
Reference in a new issue