Skip to content

Commit

Permalink
fixed all deletion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaaoBlues committed May 26, 2022
1 parent 1cb9acd commit 738f4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion copypasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def process(process_id):

#empty the history files
if process_id == "[DEL HISTORY]":
init_history_file()
init_history_file(force=True)
return redirect("/")


Expand Down
2 changes: 2 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ <h1>Last files/data sent :</h1>
xmlHttp.open( "GET", "http://127.0.0.1:21987/api/get_history", false ); // false for synchronous request
xmlHttp.send( null );
var r = xmlHttp.responseText;


if(r == "{\"history\" : []}"){
document.getElementById("history_table_body").innerHTML = "";
}else{
Expand Down

0 comments on commit 738f4b5

Please sign in to comment.