File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ def get_datetime():
14
14
return datetime .now ().strftime ("%H:%M:%S" )
15
15
16
16
17
- date = get_datetime ()
18
-
19
-
20
17
def typing_effect (text ):
21
18
"""
22
19
Prints text with a typing effect.
@@ -302,7 +299,7 @@ def ask_to_add_task():
302
299
"""
303
300
Asks the user if he/she wants to add a new task.
304
301
"""
305
- chatbot_message ("Would you like to add a new task? [y/N]" )
302
+ chatbot_message ("\n Would you like to add a new task? [y/N]" )
306
303
answer = get_str_input ()[0 ]
307
304
308
305
if answer == "y" :
@@ -320,7 +317,7 @@ def log(message, person):
320
317
path = "log.txt"
321
318
322
319
with open (path , "a" , newline = "" ) as log_file :
323
- log_file .write (f"[{ person } ][{ date } ] - { message } \n " )
320
+ log_file .write (f"[{ person } ][{ get_datetime () } ] - { message } \n " )
324
321
return message
325
322
326
323
You can’t perform that action at this time.
0 commit comments