twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
3 changed files with 3 additions and 7 deletions
Showing only changes of commit 43a8763c77 - Show all commits

View File

@ -28,11 +28,6 @@ def create_app():
app.register_blueprint(twitter, url_prefix='/twitter') app.register_blueprint(twitter, url_prefix='/twitter')
app.register_blueprint(campaign, url_prefix='/campaign') app.register_blueprint(campaign, url_prefix='/campaign')
@app.before_request
def log_request_info():
app.logger.debug('Headers: %s', request.headers)
app.logger.debug('Body: %s', request.get_data())
@app.route('/hello') @app.route('/hello')
def hello(): def hello():
return "Hello world!" return "Hello world!"

View File

@ -9,6 +9,9 @@ campaign = Blueprint('campaign', __name__)
@campaign.route('/campaign', methods=['GET']) @campaign.route('/campaign', methods=['GET'])
def get_twitter_campaigns(): def get_twitter_campaigns():
print('Headers: %s', request.headers)
print('Body: %s', request.get_data())
twitter_campaigns = TwitterCampaign.query.all() twitter_campaigns = TwitterCampaign.query.all()
campaigns = [] campaigns = []

View File

@ -1,5 +1,3 @@
import io
from setuptools import find_packages from setuptools import find_packages
from setuptools import setup from setuptools import setup