13 def __init__(self): |
13 def __init__(self): |
14 needNew = not os.path.isfile ('commits.db') |
14 needNew = not os.path.isfile ('commits.db') |
15 self.db = sqlite3.connect ('commits.db') |
15 self.db = sqlite3.connect ('commits.db') |
16 |
16 |
17 if needNew: |
17 if needNew: |
18 self.createNew() |
18 self.create_new() |
19 |
19 |
20 def create_new (self): |
20 def create_new (self): |
21 self.db.executescript (''' |
21 self.db.executescript (''' |
22 DROP TABLE IF EXISTS COMMITS; |
22 DROP TABLE IF EXISTS COMMITS; |
23 DROP TABLE IF EXISTS REPOS; |
23 DROP TABLE IF EXISTS REPOS; |