Skip to content

Commit f0f6f9b

Browse files
committed
python script that was used to update AP IDs before, may be useful in the future
1 parent 502114f commit f0f6f9b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
lines = ""
2+
3+
with open("location_mapping.lua", "r") as f:
4+
lines = f.readlines()
5+
f.close()
6+
7+
i = 0
8+
for k,line in enumerate(lines):
9+
i += 1
10+
if i > 717:
11+
break
12+
if i > 169:
13+
value = int(line[5:15])
14+
old = value
15+
value += 1
16+
lines[k] = line.replace(str(old), str(value))
17+
18+
print(lines)
19+
with open("location_mapping.lua", "w") as f:
20+
f.writelines(lines)
21+
f.close()

0 commit comments

Comments
 (0)