fixing bug in headers

This commit is contained in:
evilchili 2023-12-22 23:58:02 -08:00
parent e579d11cfa
commit 06f9ee9325
2 changed files with 1 additions and 4 deletions

View File

@ -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'

View File

@ -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