Skip to content

Commit

Permalink
🐛 Fix await posted empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Nov 1, 2024
1 parent 7b602d5 commit ed4c2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/admin/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def task(self, context: "ContextTypes.DEFAULT_TYPE", post_type: "PostTypeE
temp_post_id_list = [post.post_id for post in official_recommended_posts]

# 判断是否为空
if self.is_posted_empty(post_type):
if await self.is_posted_empty(post_type):
for temp_list in temp_post_id_list:
await self.set_posted(post_type, temp_list)
return
Expand Down

0 comments on commit ed4c2c4

Please sign in to comment.