fixed filepath
This commit is contained in:
parent
aab023af62
commit
f02de579ed
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ class PhixxyCom(commands.Cog):
|
||||||
content = content.replace(title, '', 1)
|
content = content.replace(title, '', 1)
|
||||||
with open(filepath, 'w') as f:
|
with open(filepath, 'w') as f:
|
||||||
f.write(f"# {title}\n\n*{date}*\n\n{content}")
|
f.write(f"# {title}\n\n*{date}*\n\n{content}")
|
||||||
await self.upload_sftp(filepath, (os.getenv('ftp_public_html') + 'ai-blog/'), filename)
|
await self.upload_sftp(filepath, (os.getenv('ftp_public_html') + 'ai-blog/content/'), filename)
|
||||||
run_time = time.time() - start_time
|
run_time = time.time() - start_time
|
||||||
self.logger.debug("It took " + str(run_time) + " seconds to generate the blog post!")
|
self.logger.debug("It took " + str(run_time) + " seconds to generate the blog post!")
|
||||||
output = f"Blog Updated! ({run_time} seconds) {title} https://ai.phixxy.com/ai-blog"
|
output = f"Blog Updated! ({run_time} seconds) {title} https://ai.phixxy.com/ai-blog"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue