Skip to content

Commit

Permalink
fixed typo in get_thumbnails.py
Browse files Browse the repository at this point in the history
  • Loading branch information
John-J-Riehl committed Jul 31, 2022
1 parent a6a4b4d commit 56112b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back-end/get_thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def lambda_handler(event, context):
thumbnails = []

for meme in memes:
# skip this thumbnail if the it's past its time to die
# skip this thumbnail if it's past its time to die
if time_now > : ### time to die value from database
continue

Expand All @@ -36,7 +36,7 @@ def lambda_handler(event, context):

# load the image into an in-memory file object
with io.BytesIO() as in_mem_file:
### download the thumbnail image from S3. skip the meme if the thumbnail doesn't exist
### download a thumbnail image from S3. skip the meme if the thumbnail doesn't exist

# now write the image into the thumbnail as a base64 data URL
# base 64 conversion code courtesy of https://stackoverflow.com/a/68989496/4062628
Expand Down

0 comments on commit 56112b7

Please sign in to comment.