mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Tabs, meet your new overlords: spaces
In a quest to reach pep8, use spaces to indent rather than tabs.
This commit is contained in:
@ -5,19 +5,19 @@ import json
|
||||
from models import MailingList, MailingListGroup
|
||||
|
||||
def listinfo(request):
|
||||
resp = HttpResponse(content_type='application/json')
|
||||
groupdata = [ {
|
||||
'id': g.id,
|
||||
'name': g.groupname,
|
||||
'sort': g.sortkey,
|
||||
} for g in MailingListGroup.objects.all()]
|
||||
listdata = [ {
|
||||
'id': l.id,
|
||||
'name': l.listname,
|
||||
'groupid': l.group_id,
|
||||
'active': l.active,
|
||||
'shortdesc': l.shortdesc,
|
||||
'description': l.description,
|
||||
} for l in MailingList.objects.all()]
|
||||
json.dump({'groups': groupdata, 'lists': listdata}, resp)
|
||||
return resp
|
||||
resp = HttpResponse(content_type='application/json')
|
||||
groupdata = [ {
|
||||
'id': g.id,
|
||||
'name': g.groupname,
|
||||
'sort': g.sortkey,
|
||||
} for g in MailingListGroup.objects.all()]
|
||||
listdata = [ {
|
||||
'id': l.id,
|
||||
'name': l.listname,
|
||||
'groupid': l.group_id,
|
||||
'active': l.active,
|
||||
'shortdesc': l.shortdesc,
|
||||
'description': l.description,
|
||||
} for l in MailingList.objects.all()]
|
||||
json.dump({'groups': groupdata, 'lists': listdata}, resp)
|
||||
return resp
|
||||
|
Reference in New Issue
Block a user