Commit 8bd5a25d authored by Mario Chirinos's avatar Mario Chirinos

glob json

parent 52541c4b
......@@ -89,7 +89,8 @@ class Command(BaseCommand):
if y >=minYear:
os.chdir(str(y))
print (os.getcwd())
filesList = sorted(os.listdir("."))
#filesList = sorted(os.listdir("."))
filesList = sorted(glob.glob("*.json"))
print (filesList)
for f in filesList:
fileDate = datetime.datetime.strptime(f[:f.find(".")], "%Y-%m-%d").date()
......
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