From 4aa2e021b3b54e2450e187a77e5d8064009951e7 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Tue, 13 Oct 2020 14:11:28 -0400 Subject: [PATCH] subtractionFunc naming error --- mathgenerator/mathgen.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mathgenerator/mathgen.py b/mathgenerator/mathgen.py index 0c6d444..0829dc7 100644 --- a/mathgenerator/mathgen.py +++ b/mathgenerator/mathgen.py @@ -27,7 +27,7 @@ def additionFunc(maxSum = 99, maxAddend = 50): solution = str(c) return problem, solution -def subtraction(maxMinuend = 99, maxDiff = 99): +def subtractionFunc(maxMinuend = 99, maxDiff = 99): a = random.randint(0, maxMinuend) b = random.randint(max(0, (a-maxDiff)), a) c = a-b diff --git a/setup.py b/setup.py index 0c36b2a..27cc2a5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='mathgenerator', - version='1.0.1', + version='1.0.2', description='An open source solution for generating math problems', url='https://github.com/todarith/mathgenerator', author='Luke Weiler',