Skip to content

Commit 4c6a8de

Browse files
author
Richard Jones
committed
only look for csv files on import
1 parent b5c44b6 commit 4c6a8de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/admin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.43 2003-03-16 22:24:54 kedder Exp $
19+
# $Id: admin.py,v 1.44 2003-03-18 23:15:29 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -980,6 +980,10 @@ class to import.
980980
from roundup import hyperdb
981981

982982
for file in os.listdir(args[0]):
983+
# we only care about CSV files
984+
if not file.endswith('.csv'):
985+
continue
986+
983987
f = open(os.path.join(args[0], file))
984988

985989
# get the classname

0 commit comments

Comments
 (0)