Skip to content

Commit a56d506

Browse files
committed
updated data structure
1 parent 5038214 commit a56d506

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

imageslicer.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
last_image = None
1111

12-
json_data = {
13-
"img_data": []
14-
}
15-
12+
json_data = []
1613

1714
def main():
1815
global settings
@@ -116,7 +113,7 @@ def build_data_json(output, slices, path, current_data, current_level):
116113
}
117114
current_data["tiles"].append(data)
118115

119-
json_data["img_data"].append(current_data)
116+
json_data.append(current_data)
120117

121118

122119
def slice_img(image, slices, current_level):

0 commit comments

Comments
 (0)