From: Benjamin Mako Hill Date: Tue, 22 May 2012 21:38:51 +0000 (-0400) Subject: get a list of punted people X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/e084e3266c80cec1d0ee832b16254a0d4fd93c9f get a list of punted people --- 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) + +