Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 2bfccb2

Browse files
committed
Merge pull request #59 from jekil/master
Fixed search
2 parents 39402e5 + eed311d commit 2bfccb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

viper/core/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def find(self, key, value=None):
315315

316316
rows = session.query(Malware).filter(Malware.name.like(value)).all()
317317
elif key == 'note':
318-
rows = session.query(Malware).filter(Malware.note.any(Note.body.like(value))).all()
318+
rows = session.query(Malware).filter(Malware.note.any(Note.body.like(u'%' + unicode(value) + u'%'))).all()
319319
else:
320320
print_error("No valid term specified")
321321

0 commit comments

Comments
 (0)