optimized screen clear
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# timeTrack.py
|
||||
# by 4nima
|
||||
# v.2.0.3
|
||||
# v.2.0.4
|
||||
#
|
||||
#########################
|
||||
# simple time tracking with database
|
||||
@@ -458,6 +458,7 @@ class TimeTrack:
|
||||
pass
|
||||
|
||||
def print_time_entry(self, STARTTIME='', ENDTIME='', ACTIVITY=''):
|
||||
self.clear_screen()
|
||||
s = (ENDTIME - STARTTIME).seconds
|
||||
hours, remainder = divmod(s, 3600)
|
||||
minutes, seconds = divmod(remainder, 60)
|
||||
|
||||
Reference in New Issue
Block a user