Fixed bug in rainbow function which breaks output with numbers

This commit is contained in:
mrhanky
2017-08-01 15:50:12 +02:00
parent 18e09a1a57
commit ba9cdd2527
2 changed files with 3 additions and 1 deletions

View File

@ -311,4 +311,4 @@ class Useless(DatabasePlugin):
# noinspection PyMethodMayBeStatic
def _rainbow(self, i, char):
return '\x030{}{}'.format(RAINBOW[i % RAINBOW_LEN], char)
return '\x030{0:02d}{1}'.format(RAINBOW[i % RAINBOW_LEN], char)