aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:55:32 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-12-17 00:55:32 +0100
commitfc80a9494dd50700d85c5ee9bd84fd7f7fc8be98 (patch)
treecf5bb929cdea7ad3d15f93b6f0e680a65febc249
parent64c2937d4707da5d1976c837d45128cfdf8b6db3 (diff)
downloadbin-fc80a9494dd50700d85c5ee9bd84fd7f7fc8be98.tar.xz
todo: loop over context array and add each to string
This commit changes the format of the todo file to use a table for the contexts instead of just a string
-rwxr-xr-xtodo5
1 files changed, 4 insertions, 1 deletions
diff --git a/todo b/todo
index a533940..5673a1d 100755
--- a/todo
+++ b/todo
@@ -130,7 +130,10 @@ def main():
if 'url' in entry:
output += "\n URL: {}".format(entry['url'])
if 'context' in entry:
- output += "\n Contexts: {}".format(entry['context'])
+ context_line = '\n Context:'
+ for c in entry['context']:
+ context_line += ' {}'.format(c)
+ output += context_line
print(output)