Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
sty
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Apr 9, 2019
1 parent e2f0bfb commit ed6280a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions knimin/handlers/barcode_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ class PushQiitaHandler(BaseHandler):

@concurrent.run_on_executor
def _push_to_qiita(self, study_id, samples):
r = None
logger.debug('Entering PushQiitaHandler._push_to_qiita()')

try:
Expand Down Expand Up @@ -278,10 +277,9 @@ def post(self):

db.set_send_qiita_buffer_status("Pushing...")

result = 'empty'
logger.debug('Pushing to Qiita')
try:
result = yield self._push_to_qiita(self.study_id, barcodes)
yield self._push_to_qiita(self.study_id, barcodes)
except: # noqa
logger.debug('Push failed')
db.set_send_qiita_buffer_status("Failed!")
Expand Down
3 changes: 0 additions & 3 deletions knimin/tests/test_barcode_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from knimin.tests.tornado_test_base import TestHandlerBase
from knimin.handlers.barcode_util import BarcodeUtilHelper, get_qiita_client

from time import sleep


class TestQiitaPush(TestHandlerBase):
def setUp(self):
Expand Down Expand Up @@ -61,7 +59,6 @@ def test_post_has_barcodes(self):
self.assertIn('000004215', exp)
self.post(r"/notify-qiita/", data={'foo': 'bar'})

#sleep(60)
obs = db._con.execute_fetchall("""SELECT barcode
FROM barcodes.project_qiita_buffer
WHERE pushed_to_qiita='Y'""")
Expand Down

0 comments on commit ed6280a

Please sign in to comment.