From cb08157935c371b4924ef921afa3c736731ee49d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 8 Sep 2009 12:42:44 +0200 Subject: [PATCH] Don't display files starting with a dot. --- apps/explorer/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 19cc10b1..18f79b3e 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -46,7 +46,7 @@ def ajax_login_required(view): def file_list(request, repo): # latest_default = repo.get_branch_tip('default') - files = list( repo.repo[latest_default] ) + files = [ f for f in repo.repo[latest_default] if not f.startswith('.')] bookform = forms.BookUploadForm() return direct_to_template(request, 'explorer/file_list.html', extra_context={ -- 2.20.1