Пример #1
0
    def __init__(self, cur):
        PathBuilder.__init__(self, cur,
                             int(get_option('path_cache_high_mark', "2000")),
                             int(get_option('path_cache_low_mark', "1000")))

        print("resetting yields...")
        self.cur.execute("""update nodes
set yield=0""")
Пример #2
0
 def __init__(self, cur):
     PathBuilder.__init__(self, cur)
     self.path = {}  # depth -> [ url_id ]