fixing bug in headers
This commit is contained in:
parent
e579d11cfa
commit
06f9ee9325
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = 'dnd-rolltable'
|
||||
version = '1.1.9'
|
||||
version = '1.1.1'
|
||||
license = 'The Unlicense'
|
||||
authors = ['Greg Boyington <evilchili@gmail.com>']
|
||||
description = 'Generate roll tables using weighted random distributions'
|
||||
|
|
|
@ -93,9 +93,6 @@ class DataSource:
|
|||
data = dict()
|
||||
for name in self.data.keys():
|
||||
entries = self.get_entries(name, rand=False)
|
||||
headers = self.headers
|
||||
for i in range(0, len(self.headers) - len(entries[0])):
|
||||
headers.append(f"{i:3f}")
|
||||
items = {(k, v) for k, v in zip(self.headers, entries)}
|
||||
data[name] = dict(items)
|
||||
return data
|
||||
|
|
Loading…
Reference in New Issue
Block a user