Fixed wrong identation
This commit is contained in:
parent
42f9ef0f20
commit
715e27cc43
@ -389,7 +389,7 @@ class MumbleBot:
|
||||
msg += '<tr><td>%s</td><td>%s</td><td>%s</td><td>%s/%s</td><td>%s</td></tr>' % (stationid, stationname, genre, codec, bitrate, country)
|
||||
msg += '</table>'
|
||||
# Shorten table if message too long
|
||||
if len(msg) < 5000:
|
||||
if len(msg) <= 5000:
|
||||
logging.debug('Result too long stage I')
|
||||
msg = var.config.get('strings', 'rbqueryresult') + " :" + ' (shortened L1)'
|
||||
msg += '\n<table><tr><th>!rbplay ID</th><th>Station Name</th></tr>'
|
||||
@ -398,7 +398,6 @@ class MumbleBot:
|
||||
stationname = s['stationname']
|
||||
# msg += f'<tr><td>{stationid}</td><td>{stationname}</td>'
|
||||
msg += '<tr><td>%s</td><td>%s</td>' % (stationid, stationname)
|
||||
if len(msg) < 5000:
|
||||
self.send_msg(msg, text)
|
||||
else:
|
||||
logging.debug('Result too long stage II')
|
||||
@ -409,7 +408,7 @@ class MumbleBot:
|
||||
stationname = s['stationname'][:12]
|
||||
# msg += f'{stationid} - {stationname}'
|
||||
msg += '%s - %s' % (stationid, stationname)
|
||||
if len(msg) < 5000:
|
||||
if len(msg) <= 5000:
|
||||
self.send_msg(msg, text)
|
||||
else:
|
||||
self.send_msg('Query result too long to post (> 5000 characters), please try another query.', text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user