From 7b6907c5a8620d56fada4df7cade5e483b027323 Mon Sep 17 00:00:00 2001 From: AaronLieb Date: Thu, 3 Oct 2024 13:05:05 -0700 Subject: [PATCH] Change image render to current prompt --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1f0b471..f84cf82 100644 --- a/main.py +++ b/main.py @@ -101,7 +101,7 @@ def images_page( date_str = prompt.date.strftime("%b %-d, %Y") og = {"display": False} - winner = db.get_winner_by_prompt(n - 1) + winner = db.get_winner_by_prompt(n) if winner is not None: og["display"] = True og["url"] = winner.url