diff --git a/data/12-stitch-toy-747.json b/data/12-stitch-toy-747.json
new file mode 100644
index 0000000..47716be
--- /dev/null
+++ b/data/12-stitch-toy-747.json
@@ -0,0 +1,22 @@
+{
+ "card_width": 142.0,
+ "stitches": 12,
+ "row_height": 5.5,
+ "stitch_width": 10.0,
+ "pattern_hole_diameter": 3.5,
+ "pattern_hole_xoffset": 16.0,
+ "pattern_hole_yoffset": 44.0,
+ "clip_hole_diameter": 0.0,
+ "clip_hole_xoffset": 0.0,
+ "clip_hole_yoffset": 0.0,
+ "tractor_hole_diameter": 2.7,
+ "tractor_hole_xoffset": 9.0,
+ "tractor_hole_yoffset": 0.0,
+ "overlapping_rows": 0,
+ "overlapping_row_xoffset": 0.0,
+ "overlapping_row_yoffset": 0.0,
+ "corner_offset": 1.0,
+ "force_solid_fill": false,
+ "half_hole_at_bottom": false
+ }
+
\ No newline at end of file
diff --git a/modules/pcgenerator.py b/modules/pcgenerator.py
index d2e729a..70ef62f 100644
--- a/modules/pcgenerator.py
+++ b/modules/pcgenerator.py
@@ -96,7 +96,7 @@ class PCGenerator:
global machine_config
self.handler = handler
- data_dir = os.path.join(os.path.dirname(__file__), '../data/')
+ data_dir = os.path.join(os.path.dirname(__file__), '../data/')
with open("{}/{}.json".format(data_dir, machine_id)) as json_config:
machine_config = json.loads(json_config.read())
if is_blank:
@@ -107,7 +107,7 @@ class PCGenerator:
machine_id,
len(self.data[0]),
len(self.data),
- machine_config['stitches'] / len(self.data[0]),
+ (int)(machine_config['stitches'] / len(self.data[0])),
vert_repeat,
is_blank,
is_solid_fill)
diff --git a/templates/pcgenerator.html b/templates/pcgenerator.html
index e47eeda..39d4cab 100644
--- a/templates/pcgenerator.html
+++ b/templates/pcgenerator.html
@@ -78,13 +78,16 @@ along with this program. If not, see
Select file to upload: |
- (maximum file size 4000 characters) |
+
+ (file must have .txt extension; maximum file size 4000 characters) + |
||
Select machine type: |
- | +|||
# Vertical repeats (up to 100): |