From 1f1f41a696936c4c0da8f50fb49e97ece0d1cd0d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 17 Nov 2016 14:24:01 -0700 Subject: [PATCH] Integrate suggestions from code review --- tools/devel-server.py | 2 +- tools/moth.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/devel-server.py b/tools/devel-server.py index 42785c6..9b925cd 100755 --- a/tools/devel-server.py +++ b/tools/devel-server.py @@ -128,7 +128,7 @@ you are a fool. if fpath: cat = moth.Category(fpath, seed) if points: - puzzle = cat.puzzle(int(parts[3])) + puzzle = cat.puzzle(points) if not cat: title = "Puzzle Categories" diff --git a/tools/moth.py b/tools/moth.py index 663c33d..25ee393 100644 --- a/tools/moth.py +++ b/tools/moth.py @@ -181,6 +181,7 @@ class Category: self.catmod = importlib.machinery.SourceFileLoader( 'catmod', os.path.join(path, 'category.py')).load_module() + self.pointvals.extend(self.catmod.points) self.pointvals = self.catmod.points[:] else: for fpath in glob.glob(os.path.join(path, "[0-9]*")):