def exists_code(self, code):
        
        return self.db.codes.find_one({'_id': code}) != None
Checks if a given code exists on the database or not
dataset/ETHPy150Open joaoqalves/web2py-oauth2/modules/oauth/storage/__init__.py/MongoStorage.exists_code