From 5d299e7d82f6580c96290e91406d72e8817d97df Mon Sep 17 00:00:00 2001 From: George Lacey Date: Thu, 22 Sep 2016 11:36:05 +0100 Subject: [PATCH] Add minor documentation --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 0a40fa2..8e4235d 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ from Database import * raw_borg_output = stdin.readlines() +# attribute names of log based on borg output attributes = {"Archive name: ": "", "Archive fingerprint: ": "", "Time (start): ": "", @@ -11,7 +12,8 @@ attributes = {"Archive name: ": "", "Number of files: ": ""} for i in range(0, len(raw_borg_output)): - + + # Look for lines matching attribute names for key in attributes: if raw_borg_output[i].startswith(key): attributes[key] = raw_borg_output[i] \