markov: force the target/context to lowercase
This commit is contained in:
parent
e8d57b29b2
commit
4f17234a0a
|
@ -87,6 +87,8 @@ def generate_sentence(context, topics=None, max_words=30):
|
|||
def get_or_create_target_context(target_name):
|
||||
"""Return the context for a provided nick/channel, creating missing ones."""
|
||||
|
||||
target_name = target_name.lower()
|
||||
|
||||
# find the stuff, or create it
|
||||
try:
|
||||
target = MarkovTarget.objects.get(name=target_name)
|
||||
|
|
Loading…
Reference in New Issue