Пример #1
0
class BlackList(object):
    def __init__(self):
        self.con = HistoryDB('ban')

    def check_banned_for(self, url):
        url = url.replace("'", "''")
        sql = "SELECT count(*) FROM ban WHERE url='%s';" % url
        return self.con.fetchone(sql)
Пример #2
0
class BlackList(object):

    def __init__(self):
        self.con = HistoryDB('ban')

    def check_banned_for(self, url):
        url = url.replace("'", "''")
        sql = "SELECT count(*) FROM ban WHERE url='%s';" % url
        return self.con.fetchone(sql)
Пример #3
0
 def __init__(self):
     self.con = HistoryDB('ban')
Пример #4
0
 def __init__(self):
     self.con = HistoryDB('ban')