-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (20 loc) 路 694 Bytes
/
Copy pathmain.py
File metadata and controls
28 lines (20 loc) 路 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from menu.menu import run_menu
from timer.storage import load_data, save_data
from timer.timer import choose_time, choose_display_mode, start_timer
from timer.utils import reset_daily_minutes
def main():
print("Hello Geissi!")
run_menu()
data = load_data()
reset_daily_minutes(data)
minutes = choose_time()
show_countdown = choose_display_mode()
start_timer(minutes, show_countdown)
clover = minutes // 10
data['total_minutes'] += minutes
data['total_clover'] += clover
save_data(data)
print(f"Congrats, you worked for {minutes} minutes today!")
print(f"You've earned {clover} Clover(s) so far")
if __name__ == "__main__":
main()