Skip to content

Commit

Permalink
edit markdown upload dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeaktian committed Dec 14, 2018
1 parent 10b943a commit bf07166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def write(uid):
parentdir = os.path.dirname(basepath) # 父级目录
upload_path = os.path.join(parentdir, 'static/Upload_Files/img', secure_filename(new_cover_name))
new_cover.save(upload_path)
upload_path = os.path.join(parentdir, 'static/Upload_Files/img', secure_filename(new_markdown_name))
upload_path = os.path.join(parentdir, 'static/Upload_Files/markdown', secure_filename(new_markdown_name))
new_cover.save(upload_path)


Expand Down Expand Up @@ -123,4 +123,4 @@ def login():
def logout():
session.pop('user_name', None)
g.current_user = None
return redirect('/')
return redirect('/')

0 comments on commit bf07166

Please sign in to comment.