Fixed captions not getting detected

This commit is contained in:
Profitroll 2023-02-17 22:26:07 +01:00
parent a54081a2ae
commit 87af9fd333
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ async def send_content(app: PosterClient):
del response
submitted_caption = col_submitted.find_one( {"image": ObjectId(pic[0])} )
submitted_caption = col_submitted.find_one( {"temp.file": pic[1]} )
if submitted_caption is not None:
caption = submitted_caption["caption"].strip()