18 lines
546 B
Python
18 lines
546 B
Python
"""Fix indentation of lines 379-381 in app.py."""
|
|
path = "webui/app.py"
|
|
with open(path) as f:
|
|
lines = f.readlines()
|
|
|
|
# Fix lines 379-381: remove 8 leading spaces (they have 16, should have 8)
|
|
for i in range(378, 382): # 0-indexed: 378 = line 379
|
|
if i < len(lines):
|
|
stripped = lines[i].lstrip()
|
|
current_indent = len(lines[i]) - len(stripped)
|
|
if current_indent == 16:
|
|
lines[i] = " " * 8 + stripped
|
|
|
|
with open(path, "w") as f:
|
|
f.writelines(lines)
|
|
|
|
compile(open(path).read(), path, 'exec')
|
|
print("OK") |