Skip to content

Commit

Permalink
Fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-b716 committed Dec 17, 2024
1 parent 6282f90 commit 84384a4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions dataGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ def refresh(self):

def create(self):
self.refresh()
note = input("Please enter a note: ")
note = "\\/:*?\"<>|"
while "\\" in note or "/" in note or ":" in note or "*" in note or "?" in note or "\"" in note or "<" in note or ">" in note or "|" in note:
note = input("Please enter a note: ")
zipFileName = str(time.time())
if note != "":
zipFileName = zipFileName + "-" + note
Expand Down Expand Up @@ -386,7 +388,14 @@ def viewDataSet(self):
self.viewDataSet()
else:
if sendBackInformation < len(dataSetObj.dataSetList):
dataSetObj.switch(sendBackInformation)
choiceRes = input("s. Switch\nd. Delete\nEnter a number to execute: ")
print()
if choiceRes == "s":
dataSetObj.switch(sendBackInformation)
elif choiceRes == "d":
dataSetObj.delete(sendBackInformation)
else:
self.viewDataSet()
else:
self.viewDataSet()

Expand Down Expand Up @@ -422,7 +431,7 @@ def mainPage(self):
self.mainPage()

class Meta:
_version = "7.0.0"
_version = "7.0.1"


if __name__ == "__main__":
Expand Down

0 comments on commit 84384a4

Please sign in to comment.