safe_load is not working for book
yaml.safe_load() was not working for import_book, changed it to use yaml.load() instead.
This commit is contained in:
parent
7545f3726e
commit
d8f0a018ae
|
@ -46,7 +46,7 @@ def import_book(dbook, in_stream):
|
|||
|
||||
dbook.wipe()
|
||||
|
||||
for sheet in yaml.safe_load(in_stream):
|
||||
for sheet in yaml.load(in_stream):
|
||||
data = tablib.Dataset()
|
||||
data.title = sheet['title']
|
||||
data.dict = sheet['data']
|
||||
|
|
Loading…
Reference in New Issue