From 78ccb51c943230d66a0f788c927093fd7c9cdbe2 Mon Sep 17 00:00:00 2001 From: ChocoTonic Date: Fri, 24 Sep 2021 04:57:45 -0700 Subject: [PATCH] format with Black --- Examples/cli_example.py | 4 +- Examples/web_example.py | 21 +- README.md | 2 +- docs/conf.py | 154 ++++++------- fatsecret/__init__.py | 10 +- fatsecret/fatsecret.py | 469 +++++++++++++++++++++++++--------------- setup.py | 40 ++-- 7 files changed, 423 insertions(+), 277 deletions(-) diff --git a/Examples/cli_example.py b/Examples/cli_example.py index d42a50f..f9aaf3c 100644 --- a/Examples/cli_example.py +++ b/Examples/cli_example.py @@ -15,7 +15,7 @@ print("Food Search Results: {}".format(len(foods))) print("{}\n".format(foods)) -food = fs.food_get('1345') +food = fs.food_get("1345") print("Food Item 1345") print("{}\n".format(food)) @@ -23,7 +23,7 @@ print("Recipe Search Results:") print("{}\n".format(recipes)) -recipe = fs.recipe_get('88339') +recipe = fs.recipe_get("88339") print("Recipe 88339") print("{}\n".format(recipe)) diff --git a/Examples/web_example.py b/Examples/web_example.py index db98fa3..0e4e9f7 100644 --- a/Examples/web_example.py +++ b/Examples/web_example.py @@ -13,17 +13,18 @@ @app.route("/") def index(): - if request.args.get('oauth_verifier'): + if request.args.get("oauth_verifier"): - session_token = fs.authenticate(request.args.get('oauth_verifier')) + session_token = fs.authenticate(request.args.get("oauth_verifier")) - return redirect(url_for('profile')) + return redirect(url_for("profile")) else: return "