Skip to content

Commit

Permalink
Change image render to current prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLieb committed Oct 3, 2024
1 parent 2e91608 commit 7b6907c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b6907c

Please sign in to comment.