Skip to content

Commit

Permalink
let storage backend retrieve the actual file
Browse files Browse the repository at this point in the history
(fixes #31)
  • Loading branch information
sheppard committed Nov 19, 2021
1 parent 5cb31c9 commit 4a63066
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data_wizard/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ class FileLoader(BaseLoader):

@property
def file(self):
return getattr(self.content_object, self.file_attr)
file = getattr(self.content_object, self.file_attr)
return file.file

def load_iter(self):
from itertable import load_file

options = self.load_iter_options()
return load_file(self.file.path, options=options)
return load_file(self.file, options=options)


class URLLoader(BaseLoader):
Expand Down

0 comments on commit 4a63066

Please sign in to comment.