Skip to content

Commit

Permalink
fix listprojects
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
  • Loading branch information
Nico Schottelius committed Apr 11, 2015
1 parent d0cf603 commit bf0e47c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/ctt/listprojects.py
Expand Up @@ -22,6 +22,7 @@

import ctt
import logging
import os

log = logging.getLogger(__name__)

Expand All @@ -40,5 +41,8 @@ def print_projects(cls):

@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
2 changes: 1 addition & 1 deletion scripts/ctt
@@ -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.
#
Expand Down

0 comments on commit bf0e47c

Please sign in to comment.