diff --git a/professor-api/professor_api/__main__.py b/professor-api/professor_api/__main__.py index 2acd3ce..2c2027c 100644 --- a/professor-api/professor_api/__main__.py +++ b/professor-api/professor_api/__main__.py @@ -1,3 +1,6 @@ +from gevent import monkey +monkey.patch_all() + import logging import os diff --git a/professor-api/professor_api/professor_api.py b/professor-api/professor_api/professor_api.py index 0176ea1..a9dddd7 100644 --- a/professor-api/professor_api/professor_api.py +++ b/professor-api/professor_api/professor_api.py @@ -2,8 +2,10 @@ import re import urllib.parse import flask +import gevent from common import database from flask import jsonify, request, copy_current_request_context +from gevent import sleep from psycopg2.extras import execute_values app = flask.Flask('buscribe')