Skip to content
Prev Previous commit
Next Next commit
Issue #1228 - Removes dump to DB feature
We might want to do that in the future but for now, it is basically
unused code.
  • Loading branch information
karlcow committed May 19, 2017
commit 5f9294c3032f21842f417bd6594c23c95eb42f2a
2 changes: 0 additions & 2 deletions webcompat/webhooks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from flask import Blueprint
from flask import request

from helpers import dump_to_db
from helpers import parse_and_set_label
from helpers import set_label
from helpers import signature_check
Expand Down Expand Up @@ -52,7 +51,6 @@ def hooklistener():
# Setting "Needs Triage" label by default
# to all the new issues raised
set_label('status-needstriage', issue_number)
dump_to_db(issue_title, issue_body, issue_number)
return ('gracias, amigo.', 200)
else:
return ('cool story, bro.', 200)
Expand Down
6 changes: 0 additions & 6 deletions webcompat/webhooks/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
import requests

from webcompat import app
from webcompat.db import issue_db
from webcompat.db import WCIssue
from webcompat.helpers import extract_url


def api_post(endpoint, payload, issue):
Expand Down Expand Up @@ -52,9 +49,6 @@ def set_label(label, issue_number):


def dump_to_db(title, body, issue_number):
url = extract_url(body)
issue_db.add(WCIssue(issue_number, title, url, body))
issue_db.commit()


def compare_digest(x, y):
Expand Down