results was already a ", ".joined string

This commit is contained in:
jesopo 2018-11-16 17:42:00 +00:00
parent 8e5415b887
commit b008bb2a0f

View file

@ -31,7 +31,6 @@ class Module(ModuleManager.BaseModule):
results.append(random.randint(1, sides_of_die)) results.append(random.randint(1, sides_of_die))
total_n = sum(results) total_n = sum(results)
results = ', '.join(map(str, results))
total = "" total = ""
if len(results) > 1: if len(results) > 1:
total = " (total: %d)" % total_n total = " (total: %d)" % total_n