fix listprojects

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-04-12 01:04:38 +09:00
parent d0cf603675
commit bf0e47cef8
2 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@
import ctt
import logging
import os
log = logging.getLogger(__name__)
@ -40,5 +41,8 @@ class ListProjects(object):
@staticmethod
def list_projects():
for project in ctt.list_projects(ctt.ctt_dir()):
for project in sorted(os.listdir(ctt.ctt_dir())):
if project[0] == ".":
continue
yield project

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# 2012-2013 Nico Schottelius (nico-ctt at schottelius.org)
# 2012-2015 Nico Schottelius (nico-ctt at schottelius.org)
#
# This file is part of ctt.
#