search for subscribers breaks on certian phrases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Singing & Dancing |
New
|
Undecided
|
Unassigned |
Bug Description
The catalog throws an exception if certian phrases are used in the search for subscribers such as 'a' and 'it' plus other common words that are deemed to common to catalog. Obviously search for a would be common looking for all those people starting with a. 'it' maybe searching for italian sites. A quick fix would be to catch the errror and then append a '*' to the query eg.
line 262 in collective.
try:
except:
This will however pull in anything with an 'a' in it, so further coding would be needed maybe something as simple as organising the search results in alphabetical order something like...
emails = [i.composer_
for email in emails:
for i in subscriptions:
if i.composer_
return items
its a bit of a fudge but any other solutions?