fixed date in blog generation

This commit is contained in:
phixxy 2024-04-20 21:09:28 -07:00
parent 85035e4ec3
commit d0c2e969fe

View file

@ -247,8 +247,7 @@ class PhixxyCom(commands.Cog):
filename = f"{self.data_dir}ai-blog/{time.strftime('%Y-%m-%d')}.md" filename = f"{self.data_dir}ai-blog/{time.strftime('%Y-%m-%d')}.md"
if os.path.exists(filename) and not force: if os.path.exists(filename) and not force:
return return
current_struct_time = time.time() date = time.strftime("%B %d, %Y")
date = time.strftime("%B %d, %Y", current_struct_time)
blogpost_file = f"{self.data_dir}blog_topics.txt" blogpost_file = f"{self.data_dir}blog_topics.txt"
if os.path.isfile(blogpost_file): if os.path.isfile(blogpost_file):
with open(blogpost_file, 'r') as f: with open(blogpost_file, 'r') as f: