Skip to content
Permalink
Browse files

Fix check_websocket_for_deletion

  • Loading branch information...
quartata committed Dec 7, 2017
1 parent d59572d commit 3907b6c6cae40305a0e65ca12170d7ee98de993c
Showing with 2 additions and 2 deletions.
  1. +2 −2 deletionwatcher.py
@@ -82,7 +82,7 @@ def check_websocket_for_deletion(self, post_site_id, post_url, timeout):

@classmethod
def check_if_report_was_deleted(self, post_url, message):
*post_site_id, _ = fetch_post_id_and_site_from_url(post_url)
post_site_id = fetch_post_id_and_site_from_url(post_url)
was_report_deleted = self.check_websocket_for_deletion(post_site_id, post_url, 1200)

if was_report_deleted:
@@ -93,7 +93,7 @@ def check_if_report_was_deleted(self, post_url, message):

@classmethod
def post_message_if_not_deleted(self, post_url, message_text, room):
*post_site_id, _ = fetch_post_id_and_site_from_url(post_url)
post_site_id = fetch_post_id_and_site_from_url(post_url)
was_report_deleted = self.check_websocket_for_deletion(post_site_id, post_url, 300)

if not was_report_deleted and not datahandling.is_false_positive(post_site_id[0:2]) and not \

0 comments on commit 3907b6c

Please sign in to comment.
You can’t perform that action at this time.