Keep backwards compatibility with old files
Due to an error, old devede files can't be opened with this version. This patch fixes it.
This commit is contained in:
parent
f2301c7b19
commit
0c52e14115
1 changed files with 2 additions and 0 deletions
|
|
@ -722,6 +722,8 @@ class devede_project:
|
||||||
if "files" in project:
|
if "files" in project:
|
||||||
error_list = []
|
error_list = []
|
||||||
for element in project["files"]:
|
for element in project["files"]:
|
||||||
|
if not "element_type" in element:
|
||||||
|
element["element_type"] = "file_movie"
|
||||||
if element["element_type"] == "file_movie":
|
if element["element_type"] == "file_movie":
|
||||||
new_file = devedeng.file_movie.file_movie(element["file_name"])
|
new_file = devedeng.file_movie.file_movie(element["file_name"])
|
||||||
if (new_file.error):
|
if (new_file.error):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue