Commit 52541c4b authored by Mario Chirinos's avatar Mario Chirinos

update.sh

parent 956ad5a7
......@@ -82,7 +82,7 @@ class Command(BaseCommand):
if news.count()>0:
minYear = news[0].date.year
lastDate = news[0].date
yearList = sorted([ int(y) for y in os.listdir('.')])
yearList = sorted([ int(y) for y in os.listdir('.') if os.path.isdir(y) ])
print (yearList)
for y in sorted(yearList):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment