Refactor log_entry -> LogEntry
This commit is contained in:
parent
52b62f9705
commit
da47c5a3fb
6
main.py
6
main.py
|
@ -1,5 +1,5 @@
|
|||
from sys import stdin
|
||||
from log_entry import *
|
||||
from LogEntry import *
|
||||
|
||||
raw_borg_output = stdin.readlines()
|
||||
|
||||
|
@ -7,7 +7,7 @@ attributes = { "Archive name: " : "",
|
|||
"Archive fingerprint: ": "",
|
||||
"Time (start): ": "",
|
||||
"Duration: ": "",
|
||||
"Number of files: " : "", }
|
||||
"Number of files: ": ""}
|
||||
|
||||
for i in range(0, len(raw_borg_output)):
|
||||
|
||||
|
@ -17,7 +17,7 @@ for i in range(0, len(raw_borg_output)):
|
|||
.strip(key) \
|
||||
.rstrip()
|
||||
|
||||
borg_output = log_entry(attributes["Archive name: "],
|
||||
borg_output = LogEntry(attributes["Archive name: "],
|
||||
attributes["Archive fingerprint: "],
|
||||
attributes["Time (start): "],
|
||||
attributes["Duration: "],
|
||||
|
|
Loading…
Reference in New Issue
Block a user