Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Commit

Permalink
[merge_graph_json.py] Fix bad prefix check
Browse files Browse the repository at this point in the history
Series foo should pick up foo-*.json.gz, without foobar-*.json.gz
  • Loading branch information
Nephyrin committed Oct 10, 2014
1 parent 2f334a8 commit 6c360ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge_graph_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def bytes(string, **kwargs):
outdir = sys.argv[2]
os.listdir(outdir)

files = list(filter(lambda x: x != seriesname + '.json.gz' and x.startswith(seriesname) and x.endswith('.json.gz'), os.listdir(outdir)))
files = list(filter(lambda x: x != seriesname + '.json.gz' and x.startswith(seriesname + "-") and x.endswith('.json.gz'), os.listdir(outdir)))
files.sort()

print("Merging %u files: %s" % (len(files), files))
Expand Down

0 comments on commit 6c360ba

Please sign in to comment.