1
0

small bug found

This commit is contained in:
acn 2016-06-09 13:26:39 +02:00
parent 488e3dae34
commit c206e26586

View File

@ -101,11 +101,11 @@ def process_command(cmd):
# check if the next page exists, e.g. 2000a => 2000b # check if the next page exists, e.g. 2000a => 2000b
curid = glob.curpage.get_page_id() curid = glob.curpage.get_page_id()
if curid == -1: if curid == -1:
send_error("Keine n"+cept['UMLAUT']+"achste Seite gefunden.") send_error("Keine n"+ cept.UMLAUT +"achste Seite gefunden.")
if str(curid[-1:]).isalpha(): if str(curid[-1:]).isalpha():
# aus 2000a 2000b machen: # aus 2000a 2000b machen:
nextid = curid[:-1] + chr(ord(curid[-1:])+1) nextid = curid[:-1] + chr(ord(curid[-1:])+1)
check_and_send_page(nextid, "Keine n"+cept['UMLAUT']+"achste Seite gefunden.") check_and_send_page(nextid, "Keine n" + cept.UMLAUT +"achste Seite gefunden.")
# special commands: # special commands:
if cmd == "!1" + cept.TER: if cmd == "!1" + cept.TER: