From 22e6996367b7a1309814e22ea133164c20042651 Mon Sep 17 00:00:00 2001 From: Martin Wood Date: Thu, 8 Feb 2024 23:20:35 +0000 Subject: [PATCH] Formatting --- web_app/api.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web_app/api.py b/web_app/api.py index 612b0cc..5aa2f4b 100644 --- a/web_app/api.py +++ b/web_app/api.py @@ -25,15 +25,16 @@ def request_wrap(url, params=None): @bp.route("/photos") def get_photos(): - count = 0; + count = 0 asset_list = [] - while (len(asset_list) < 20 and count < 7): - asset_list = asset_list + _get_photos(count) - print (f"Current asset length: {len(asset_list)}") - count = count + 1 + while len(asset_list) < 20 and count < 7: + asset_list = asset_list + _get_photos(count) + print(f"Current asset length: {len(asset_list)}") + count = count + 1 return asset_list + def _get_photos(day_adjust=0): current_time = datetime.now()