Compare commits
No commits in common. "bed153b5f82f67863ef5472f31e8ac4abfe2a995" and "0d942dc86497c8528f549b0dfad349b731cfa4f9" have entirely different histories.
bed153b5f8
...
0d942dc864
@ -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].strip()
|
shaft = threading[x]
|
||||||
if "," in shaft:
|
if "," in shaft:
|
||||||
shaft = shaft.split(",")[0]
|
shaft = shaft.split(",")[0]
|
||||||
shaft = int(shaft) if shaft else 0
|
shaft = int(shaft)
|
||||||
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