cli tool: do not archive postdata temp file

This commit is contained in:
quenousimporte 2023-09-22 12:36:12 +02:00
parent ab5d744f9e
commit 431cac35c3
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ def initdatapath():
if not os.path.exists("history"):
os.mkdir("history")
if os.path.exists("session"):
if os.path.exists("session/postdata"):
os.remove("session/postdata")
shutil.make_archive("history/session" + str(time.time()), "zip", "session")
shutil.rmtree("session")
os.mkdir("session")