mirror of https://github.com/dirtbags/moth.git
Integrate suggestions from code review
This commit is contained in:
parent
1237ab7059
commit
5e75039ffa
|
@ -128,7 +128,7 @@ you are a fool.
|
||||||
if fpath:
|
if fpath:
|
||||||
cat = moth.Category(fpath, seed)
|
cat = moth.Category(fpath, seed)
|
||||||
if points:
|
if points:
|
||||||
puzzle = cat.puzzle(int(parts[3]))
|
puzzle = cat.puzzle(points)
|
||||||
|
|
||||||
if not cat:
|
if not cat:
|
||||||
title = "Puzzle Categories"
|
title = "Puzzle Categories"
|
||||||
|
|
|
@ -181,6 +181,7 @@ class Category:
|
||||||
self.catmod = importlib.machinery.SourceFileLoader(
|
self.catmod = importlib.machinery.SourceFileLoader(
|
||||||
'catmod',
|
'catmod',
|
||||||
os.path.join(path, 'category.py')).load_module()
|
os.path.join(path, 'category.py')).load_module()
|
||||||
|
self.pointvals.extend(self.catmod.points)
|
||||||
self.pointvals = self.catmod.points[:]
|
self.pointvals = self.catmod.points[:]
|
||||||
else:
|
else:
|
||||||
for fpath in glob.glob(os.path.join(path, "[0-9]*")):
|
for fpath in glob.glob(os.path.join(path, "[0-9]*")):
|
||||||
|
|
Loading…
Reference in New Issue