fixed date in blog generation
This commit is contained in:
parent
85035e4ec3
commit
d0c2e969fe
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue