From 0ea439c9b89d32ed6367a939304c1117ee41d89e Mon Sep 17 00:00:00 2001 From: kammala Date: Wed, 3 Aug 2016 12:19:49 +0300 Subject: [PATCH] fixed database swapping --- peewee_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peewee_async.py b/peewee_async.py index ae91cc6f..884c5fdc 100644 --- a/peewee_async.py +++ b/peewee_async.py @@ -377,7 +377,7 @@ def _swap_database(self, query): def _subclassed(base, *classes): """Check if all classes are subclassed from base. """ - return all(map(lambda obj, base: isinstance(obj, base), classes)) + return all(map(lambda obj: isinstance(obj, base), classes)) @staticmethod def _prune_fields(field_dict, only):