Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
contains rather than exact
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Feb 16, 2016
1 parent 16ab374 commit a2077d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heatherr/definitions/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_definition(bot_user_id, bot_user_name, message, match):
slackaccount = SlackAccount.objects.get(bot_user_id=bot_user_id)
data = match.groupdict()
acronyms = Acronym.objects.filter(slackaccount=slackaccount,
acronym=data['acronym'])
acronym__icontains=data['acronym'])
if not acronyms.exists():
return message.reply('I don\'t have any definitions for %s.' % (
data['acronym'],))
Expand Down

0 comments on commit a2077d1

Please sign in to comment.