From 06f9ee9325ae111d49c88132e3e3ded70adf3715 Mon Sep 17 00:00:00 2001 From: evilchili Date: Fri, 22 Dec 2023 23:58:02 -0800 Subject: [PATCH] fixing bug in headers --- pyproject.toml | 2 +- rolltable/tables.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c0c292b..0f662e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = 'dnd-rolltable' -version = '1.1.9' +version = '1.1.1' license = 'The Unlicense' authors = ['Greg Boyington '] description = 'Generate roll tables using weighted random distributions' diff --git a/rolltable/tables.py b/rolltable/tables.py index d8f16d2..e933457 100644 --- a/rolltable/tables.py +++ b/rolltable/tables.py @@ -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