Skip to content

Commit

Permalink
Fix tp/tpu
Browse files Browse the repository at this point in the history
  • Loading branch information
csnardi committed Jan 17, 2015
1 parent 07d9278 commit 087a0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatcommunicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def watcher(ev, wrap2):
post_type = fetch_post_id_and_site_from_msg_content(msg_content)[2]
learned = False
if post_type == "question":
learned = bayesian_learn_title(fetch_title_from_msg_content(msg_content), "bad")
learned = bayesian_learn_title(msg_content, "bad")
user_added = False
if message_parts[1].lower().startswith("trueu") or message_parts[1].lower().startswith("tpu"):
url_from_msg = fetch_owner_url_from_msg_content(msg_content)
Expand Down

1 comment on commit 087a0bf

@thomas-daniels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. Just to say, I reverted this in one of my latest commits, because I changed the argument list of bayesian_learn_title; it now actually expects a title.

Please sign in to comment.