Skip to content

Commit

Permalink
Merge pull request #35 from Mik3Rizzo/main
Browse files Browse the repository at this point in the history
Fixed exception when deleting a wiki page
  • Loading branch information
Linbreux committed Apr 5, 2022
2 parents deafcf1 + 290e8dc commit 82e1ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def edit_homepage():
def remove(page):
filename = os.path.join(CONFIG["wiki_directory"], page + '.md')
os.remove(filename)
git_sync_thread = Thread(target=wrm.git_sync, args=(page_name, "Remove"))
git_sync_thread = Thread(target=wrm.git_sync, args=(page, "Remove"))
git_sync_thread.start()
return redirect("/")

Expand Down

0 comments on commit 82e1ad9

Please sign in to comment.