From e084e3266c80cec1d0ee832b16254a0d4fd93c9f Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Tue, 22 May 2012 17:38:51 -0400 Subject: [PATCH] get a list of punted people --- list_punted.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 list_punted.py diff --git a/list_punted.py b/list_punted.py new file mode 100755 index 0000000..56e03be --- /dev/null +++ b/list_punted.py @@ -0,0 +1,18 @@ +#!/usr/bin/python +import yaml + +f = open('bloggers.yml') +users = yaml.safe_load(f) + +class User(object): + pass + +for (un, rec) in users.items(): + u = User() + u.username = un + u.end = rec.get('end') + + if u.end: + print "%s (punted: %s)" % (u.username, u.end) + + -- 2.39.5