fixed missing slash after a folder name
This commit is contained in:
parent
26e97fbf0d
commit
082caff2b7
1 changed files with 1 additions and 2 deletions
|
|
@ -77,7 +77,6 @@ async def handle_error(error):
|
|||
|
||||
async def upload_ftp_ai_images(folder):
|
||||
for filename in os.listdir(folder):
|
||||
print(filename, filename[-4:])
|
||||
if filename[-4:] == '.png':
|
||||
filepath = folder + filename
|
||||
prompt = "Unknown Prompt" # Will have to update this later
|
||||
|
|
@ -281,7 +280,7 @@ async def task_loop():
|
|||
#Run every minute
|
||||
if current_time.tm_sec == 0:
|
||||
await meme_handler('tmp/meme/')
|
||||
await upload_ftp_ai_images('tmp/sfw')
|
||||
await upload_ftp_ai_images('tmp/sfw/')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue