# Path: asynchelper.py
# def promise(fn):
#     return lambda *args, **kwargs: ThreadPoolExecutor(1).submit(fn, *args, **kwargs)


import sqlite3
from asynchelper import promise
            [method, method]
        )))

    def is_mondo_condition_id(self, mondo_condition_id):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM mondo_clinvar_relationships WHERE mondo_id=? LIMIT 1',
            [mondo_condition_id]
        )))

    def is_significance(self, significance):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE significance=? LIMIT 1',
            [significance]
        )))

    def is_submitter_id(self, submitter_id):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE submitter_id=? LIMIT 1',
            [submitter_id]
        )))

    def is_variant_name(self, variant_name):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE variant_name=? LIMIT 1',
            [variant_name]
        )))

    def max_date(self):
        return list(self.cursor.execute('SELECT MAX(date) FROM submissions'))[0][0]


# Path: asynchelper.py
# def promise(fn):
#     return lambda *args, **kwargs: ThreadPoolExecutor(1).submit(fn, *args, **kwargs)


# Path: db.py
import sqlite3
from asynchelper import promise

            [method, method]
        )))

    def is_mondo_condition_id(self, mondo_condition_id):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM mondo_clinvar_relationships WHERE mondo_id=? LIMIT 1',
            [mondo_condition_id]
        )))

    def is_significance(self, significance):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE significance=? LIMIT 1',
            [significance]
        )))

    def is_submitter_id(self, submitter_id):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE submitter_id=? LIMIT 1',
            [submitter_id]
        )))

    def is_variant_name(self, variant_name):
        return bool(list(self.cursor.execute(
            'SELECT 1 FROM submissions WHERE variant_name=? LIMIT 1',
            [variant_name]
        )))

    def max_date(self):
        return list(self.cursor.execute('SELECT MAX(date) FROM submissions'))[0][0]


    @promise