Skip to content

Commit 98c6b19

Browse files
committed
Fix bad indentation
1 parent 3a1e17c commit 98c6b19

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

django/archives/mailarchives/views.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def attachment(request, attid):
353353
# XXX: minor information leak, because we load the whole attachment before we check
354354
# the thread permissions. Is that OK?
355355
curs = connection.cursor()
356-
curs.execute("SELECT filename, contenttype, messageid, attachment FROM attachments INNER JOIN messages ON messages.id=attachments.message AND attachments.id=%(id)s AND messages.hiddenstatus IS NULL", {'id': int(attid)})
356+
curs.execute("SELECT filename, contenttype, messageid, attachment FROM attachments INNER JOIN messages ON messages.id=attachments.message AND attachments.id=%(id)s AND messages.hiddenstatus IS NULL", {'id': int(attid)})
357357
r = curs.fetchall()
358358
if len(r) != 1:
359359
return HttpResponse("Attachment not found")
@@ -384,16 +384,16 @@ def _get_nextprevious(listmap, dt):
384384
)
385385
SELECT l.listid,1,
386386
(SELECT ARRAY[messageid,to_char(date, 'yyyy-mm-dd hh24:mi:ss'),subject,_from] FROM messages m
387-
INNER JOIN list_threads lt ON lt.threadid=m.threadid
388-
WHERE m.date>%(time)s AND lt.listid=l.listid
389-
ORDER BY m.date LIMIT 1
387+
INNER JOIN list_threads lt ON lt.threadid=m.threadid
388+
WHERE m.date>%(time)s AND lt.listid=l.listid
389+
ORDER BY m.date LIMIT 1
390390
) FROM l
391391
UNION ALL
392392
SELECT l.listid,0,
393393
(SELECT ARRAY[messageid,to_char(date, 'yyyy-mm-dd hh24:mi:ss'),subject,_from] FROM messages m
394-
INNER JOIN list_threads lt ON lt.threadid=m.threadid
395-
WHERE m.date<%(time)s AND lt.listid=l.listid
396-
ORDER BY m.date DESC LIMIT 1
394+
INNER JOIN list_threads lt ON lt.threadid=m.threadid
395+
WHERE m.date<%(time)s AND lt.listid=l.listid
396+
ORDER BY m.date DESC LIMIT 1
397397
) FROM l""", {
398398
'lists': listmap.keys(),
399399
'time': dt,
@@ -722,7 +722,7 @@ def legacy(request, listname, year, month, msgnum):
722722
'docs': ['media/css/global.css',
723723
'media/css/table.css',
724724
'media/css/text.css',
725-
'media/css/docs.css'],
725+
'media/css/docs.css'],
726726
}
727727

728728
@cache(hours=8)

django/archives/urls.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
]
6666

6767
if not settings.PUBLIC_ARCHIVES:
68-
import archives.auth
69-
70-
urlpatterns += [
71-
# For non-public archives, support login
72-
url(r'^accounts/login/?$', archives.auth.login),
73-
url(r'^accounts/logout/?$', archives.auth.logout),
74-
url(r'^auth_receive/$', archives.auth.auth_receive),
75-
]
68+
import archives.auth
69+
70+
urlpatterns += [
71+
# For non-public archives, support login
72+
url(r'^accounts/login/?$', archives.auth.login),
73+
url(r'^accounts/logout/?$', archives.auth.logout),
74+
url(r'^auth_receive/$', archives.auth.auth_receive),
75+
]

0 commit comments

Comments
 (0)