optimizied text fomating at report_by_day
This commit is contained in:
13
timeTrack.py
13
timeTrack.py
@@ -590,12 +590,13 @@ class TimeTrack:
|
||||
ENTRIECOUNT = len(timedata)
|
||||
|
||||
self.clear_screen()
|
||||
print('{:40} {}'.format("Beginn des ersten Zeiteintrags:", FIRSTSTARTTIME.strftime('%d.%m.%Y %H:%M')))
|
||||
print('{:40} {}'.format("Ende des letzen Zeiteintrags:", LASTENDTIME.strftime('%d.%m.%Y %H:%M')))
|
||||
print('{:40} {}'.format("Maximal erfassbare Zeit:", self.timedela_to_string(TRACKEDTIMESPAN)))
|
||||
print('{:40} {}'.format("Nicht erfasste Zeit:", self.timedela_to_string(NONTRACKEDTIME)))
|
||||
print('{:40} {}'.format("Erfasste Zeit:", self.timedela_to_string(TRACKEDTIME)))
|
||||
print('{:40} {}'.format("Zeiteinträge:", ENTRIECOUNT))
|
||||
text = "{:40} {}"
|
||||
print(text.format("Beginn des ersten Zeiteintrags:", FIRSTSTARTTIME.strftime('%d.%m.%Y %H:%M')))
|
||||
print(text.format("Ende des letzen Zeiteintrags:", LASTENDTIME.strftime('%d.%m.%Y %H:%M')))
|
||||
print(text.format("Maximal erfassbare Zeit:", self.timedela_to_string(TRACKEDTIMESPAN)))
|
||||
print(text.format("Nicht erfasste Zeit:", self.timedela_to_string(NONTRACKEDTIME)))
|
||||
print(text.format("Erfasste Zeit:", self.timedela_to_string(TRACKEDTIME)))
|
||||
print(text.format("Zeiteinträge:", ENTRIECOUNT))
|
||||
|
||||
printtext = [
|
||||
'Zeiteinträge anzeigen?',
|
||||
|
||||
Reference in New Issue
Block a user