Prevent another storage of long list

This commit is contained in:
Michal Čihař 2012-03-01 15:13:08 +01:00
parent 65545216dd
commit f32e069c15

View File

@ -140,9 +140,8 @@ class SubProject(models.Model):
tree = repo.tree()
# Glob files
files = glob(os.path.join(self.get_path(), self.filemask))
prefix = os.path.join(self.get_path(), '')
for f in files:
for f in glob(os.path.join(self.get_path(), self.filemask)):
filename = f.replace(prefix, '')
yield (
self.get_lang_code(filename),