Skip to content

Commit

Permalink
fixed the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
m9henri committed Sep 25, 2024
1 parent ccb1b29 commit 148c928
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "main.py",
"program": "start+tracker.py",
"console": "externalTerminal"
}
]
Expand Down
16 changes: 0 additions & 16 deletions main.py

This file was deleted.

18 changes: 17 additions & 1 deletion MainTracker.py → start+tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,20 @@ def transaction():
print("\nOk we'll reset it for you in 5 seconds.")
time.sleep(5)
transaction()
return
return

def start():
os.system("cls")
print(
"""Welcome to the money tracker!
Select one of these three options:
- Add a new entry (A)
- Close the program (E)\n""")
entry_Q = input("Choose your operation: ")
if entry_Q == "A":
transaction()
if entry_Q == "E":
os.abort()

start()

0 comments on commit 148c928

Please sign in to comment.