Skip to content

Commit

Permalink
Fixed self.root duplication in export with catdir
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
bbengfort committed Jun 23, 2018
1 parent 88d5d7c commit 835a39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baleen/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def export(self, root=None, categories=None, level=SAFE):
# Right now we will simply write them based on their object id.
for post, category in tqdm(self.posts(), total=Post.objects.count(), unit="docs"):
path = os.path.join(
self.root, catdir[category], "{}.{}".format(post.id, self.scheme)
catdir[category], "{}.{}".format(post.id, self.scheme)
)

with codecs.open(path, 'w', encoding='utf-8') as f:
Expand Down

0 comments on commit 835a39f

Please sign in to comment.