grab by name instead of id

nopraw
David Trail 13 years ago
parent 9d0b155fe2
commit 1cd59dbc78

@ -35,7 +35,7 @@ while True:
child_data = child['data'] child_data = child['data']
if 'id' in child_data: if 'id' in child_data:
datum.append({ datum.append({
'id': child_data[u'id'], 'id': child_data[u'name'],
'created': child_data['created'], 'created': child_data['created'],
'body': child_data['body'], 'body': child_data['body'],
'subreddit': child_data['subreddit']}) 'subreddit': child_data['subreddit']})

Loading…
Cancel
Save