Compare commits
3 Commits
0d942dc864
...
bed153b5f8
Author | SHA1 | Date | |
---|---|---|---|
bed153b5f8 | |||
a1d05684ed | |||
5f903d61b1 |
@ -224,10 +224,10 @@ def loads(wif_file):
|
|||||||
draft["warp"]["defaultColour"] = draft["colours"][0]
|
draft["warp"]["defaultColour"] = draft["colours"][0]
|
||||||
|
|
||||||
for x in threading:
|
for x in threading:
|
||||||
shaft = threading[x]
|
shaft = threading[x].strip()
|
||||||
if "," in shaft:
|
if "," in shaft:
|
||||||
shaft = shaft.split(",")[0]
|
shaft = shaft.split(",")[0]
|
||||||
shaft = int(shaft)
|
shaft = int(shaft) if shaft else 0
|
||||||
while int(x) >= len(draft["warp"]["threading"]) - 1:
|
while int(x) >= len(draft["warp"]["threading"]) - 1:
|
||||||
draft["warp"]["threading"].append({"shaft": 0})
|
draft["warp"]["threading"].append({"shaft": 0})
|
||||||
draft["warp"]["threading"][int(x) - 1] = {"shaft": shaft}
|
draft["warp"]["threading"][int(x) - 1] = {"shaft": shaft}
|
||||||
|
Loading…
Reference in New Issue
Block a user