Add minor documentation
This commit is contained in:
parent
f6a52ece4d
commit
5d299e7d82
2
main.py
2
main.py
|
@ -4,6 +4,7 @@ from Database import *
|
||||||
|
|
||||||
raw_borg_output = stdin.readlines()
|
raw_borg_output = stdin.readlines()
|
||||||
|
|
||||||
|
# attribute names of log based on borg output
|
||||||
attributes = {"Archive name: ": "",
|
attributes = {"Archive name: ": "",
|
||||||
"Archive fingerprint: ": "",
|
"Archive fingerprint: ": "",
|
||||||
"Time (start): ": "",
|
"Time (start): ": "",
|
||||||
|
@ -12,6 +13,7 @@ attributes = {"Archive name: ": "",
|
||||||
|
|
||||||
for i in range(0, len(raw_borg_output)):
|
for i in range(0, len(raw_borg_output)):
|
||||||
|
|
||||||
|
# Look for lines matching attribute names
|
||||||
for key in attributes:
|
for key in attributes:
|
||||||
if raw_borg_output[i].startswith(key):
|
if raw_borg_output[i].startswith(key):
|
||||||
attributes[key] = raw_borg_output[i] \
|
attributes[key] = raw_borg_output[i] \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user