diff --git a/exercises/1-monty-hall-problem/__pycache__/controller.cpython-34.pyc b/exercises/1-monty-hall-problem/__pycache__/controller.cpython-34.pyc new file mode 100644 index 0000000..8565f32 Binary files /dev/null and b/exercises/1-monty-hall-problem/__pycache__/controller.cpython-34.pyc differ diff --git a/exercises/1-monty-hall-problem/__pycache__/models.cpython-34.pyc b/exercises/1-monty-hall-problem/__pycache__/models.cpython-34.pyc index 137fdb7..d614ee3 100644 Binary files a/exercises/1-monty-hall-problem/__pycache__/models.cpython-34.pyc and b/exercises/1-monty-hall-problem/__pycache__/models.cpython-34.pyc differ diff --git a/exercises/1-monty-hall-problem/__pycache__/views.cpython-34.pyc b/exercises/1-monty-hall-problem/__pycache__/views.cpython-34.pyc index 8cb7e61..874b8d8 100644 Binary files a/exercises/1-monty-hall-problem/__pycache__/views.cpython-34.pyc and b/exercises/1-monty-hall-problem/__pycache__/views.cpython-34.pyc differ diff --git a/exercises/1-monty-hall-problem/controller.py b/exercises/1-monty-hall-problem/controller.py index 165a37e..2013111 100644 --- a/exercises/1-monty-hall-problem/controller.py +++ b/exercises/1-monty-hall-problem/controller.py @@ -52,6 +52,6 @@ class Controller: return self.start() return exit() - +print('name:', __name__) if __name__ == '__main__': Controller() diff --git a/exercises/1-monty-hall-problem/default.db b/exercises/1-monty-hall-problem/default.db index 4158e39..faa4513 100644 Binary files a/exercises/1-monty-hall-problem/default.db and b/exercises/1-monty-hall-problem/default.db differ diff --git a/exercises/1-monty-hall-problem/models.py b/exercises/1-monty-hall-problem/models.py index bdc1531..f148b54 100644 --- a/exercises/1-monty-hall-problem/models.py +++ b/exercises/1-monty-hall-problem/models.py @@ -34,7 +34,6 @@ def logDB(name, switch, outcome): conn.commit() - conn.close() return True def seedDB():