GitHub PushEvent at 2014-02-07 14:51:22
Repository: za-hansard
Actor: duncanparkes
Payload: {"shas":[["6d57510d158a358045dcfaafa5d75e0fd4d42574","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Turn on doctests in nose.","Duncan Parkes",true],["75ba94d3bbea5da880b813a45a50b257b9dd495c","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove unused import","Duncan Parkes",true],["6811b71231df3bb5296610b123ec9a84201bb9cc","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Add 'the ' to expected output for question sections.\n\nIn 251e8b42904f8b16099208f29f1bb02a9b0393ea, a 'the' was introduced\nto the title of sections containing questions, the test expected output\nfor the test needed updating to match.","Duncan Parkes",true],["5197bc11b45febe092ca85815c4e805fcda1b1f8","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Use unicode strings consistently for questions and answers to json.\n\nWe were being inconsistent on unicode/not for strings when creating\njson from the questions and answers.\n\n1) Make all the strings in the output unicode.\n2) Call 'unicode' on the output of time.strftime calls as these\nare inconsistent as in their own unicodeness (roll on Python 3).","Duncan Parkes",true],["9aeec220f5c58fbba611c7c4c7c8014544666c98","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Add model to represent batches of questions.\n\nQuestions are supplied in papers which contain multiple questions.\nSee http://www.parliament.gov.za/live/content.php?Category_ID=236\nfor a list of such papers.\n\nThis model is to allow us to store both the external (from the table)\nand internal (from headers and titles) metadata of those files. The\nhope is that this will help us in assigning answers to questions.\n\nThere should be only one questionpaper per (year/issue) combination\nso we may as well constrain this in the database.","Duncan Parkes",true],["59b610ef7be3d68a2a317545b23c18a16e98b794","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Tiny bit of PEP8ification.","Duncan Parkes",true],["03d4c7aacad81f5dbca9a324455cf92d21ebd1c8","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Shift parsing of question papers out of management command.\n\nIt's usually nicer for testing, etc, to have management commands\nrelatively thin so I'm shifting parsing of question papers to the\nquestion_scraper module instead of directly in the management command.","Duncan Parkes",true],["28ac448402db933c360054487c9ed1879d5e21db","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","lxml elements are lists so no need for list() calls.","Duncan Parkes",true],["b2a92857a3b85762726172a1a21488debcc0fec2","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Explicitly use just 'page' elements in the root.","Duncan Parkes",true],["e5f83f54ae94beb5fd87852dcf624c1a51c44b0a","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove unnecessary indentation.\n\nFind text element children rather than finding all children and\nthen ignoring those not text elements.","Duncan Parkes",true],["6fd32926123989dd5dfc8f59aecc1bf88cba76c0","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove unnecessary local variable.\n\npages is only used once, why not just make it in place.","Duncan Parkes",true],["ef593cf0367d1e3bd7a00b45b2cdd73b41574fae","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove old debug code.\n\nCount wasn't being used, and was clearly just from earlier debug,\nso it might as well go.","Duncan Parkes",true],["5520480016a8212180b25f9ecc679d86efc6a034","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove more unnecessary indentation.\n\nWe're only interested in the text elements, so no need to loop\nover pages at all.","Duncan Parkes",true],["908294c9b058b5aa32f289a1cccdc22d0cda248a","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove more old debug.","Duncan Parkes",true],["e40a25af1b53ceb8532f24e42f56b22e0b1bfe5a","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Use requests rather than urllib2.\n\nI'd forgotten to import urllib2 when moving something, but let's\njust get rid of it altogether and use requests instead.","Duncan Parkes",true],["9871035e693127001ae5356942356512e081d1c9","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove some unused variables.","Duncan Parkes",true],["1adc6fd21bbd2038ef11d6ad2ecf753824790271","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Some PEP8ification.\n\n(Just whitespace).","Duncan Parkes",true],["51b264d32f63398ec2dd6db4ff0c7e1186d9c459","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Make more concise.\n\nMore code tidying\n  - make use of ternary operator\n  - don't bother naming very simple regex.","Duncan Parkes",true],["32456cf6fd1f84a4c1f72f500839c3c9acff4528","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Remove unused return values.","Duncan Parkes",true],["bd3ca8cbe137be14d00f07377542fae5bc467b11","f69bf5514fde50d7fb64e12e8052d5aebfc37e06@mysociety.org","Blank number2 if it's not found.\n\nIf nothing looking like number2 is found, blank it and warn.","Duncan Parkes",true]],"size":123,"ref":"refs/heads/issues/pombola/973-odd-question-answer-pairings","head":"70df410d1ed3eb7e3d87b2145a5b17628166e408"}