Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dasos committed Feb 8, 2024
1 parent fca8df3 commit 22e6996
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions web_app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 22e6996

Please sign in to comment.