Skip to content

Commit

Permalink
fix trailing \n in mod panel
Browse files Browse the repository at this point in the history
  • Loading branch information
zaiteki committed May 30, 2021
1 parent 6559c66 commit f0edf77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def mod_board(board, key):
bs = [x[0] for x in local_b]
if board not in bs:
mkboard(board, key)
# abc
return str([board, key])
for L in local_b:
if tr.sec(key) == L[1] and L[0] == board:
Expand All @@ -206,7 +205,7 @@ def mod_board(board, key):
files = ["info.txt", "threads.txt", "hide.txt", "ihosts.txt"]
for f in files:
with open(f"./boards/{board}/{f}", "r") as data:
data = data.read()
data = data.read().strip()
mod[f] = data + "\n"
for f in mod:
page.append(f)
Expand Down

0 comments on commit f0edf77

Please sign in to comment.