Skip to content

Commit 4907698

Browse files
authored
Fixes Lint issue (#214)
* feat(Actions): Adds lint checking * feat(Actions): Adds Tests, package build * style(fields): Fixes lint issue
1 parent ebd88f6 commit 4907698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def default_resolver(self, _root, info, required_fields=None, resolved=None, **a
400400
args_copy[key] = args_copy[key].value
401401

402402
if PYMONGO_VERSION >= (3, 7):
403-
if hasattr(self.model,'_meta') and 'db_alias' in self.model._meta:
403+
if hasattr(self.model, '_meta') and 'db_alias' in self.model._meta:
404404
count = (mongoengine.get_db(self.model._meta['db_alias'])[self.model._get_collection_name()]).count_documents(args_copy)
405405
else:
406406
count = (mongoengine.get_db()[self.model._get_collection_name()]).count_documents(args_copy)

0 commit comments

Comments
 (0)