run yapf on gendb.py

source_entries
James Miller 2019-11-12 18:43:34 -06:00
parent 6a8ee53425
commit bd7a59bdb6
1 changed files with 5 additions and 4 deletions

View File

@ -41,6 +41,7 @@ def main():
data = yaml.full_load(yl)
do_skills(data, conn)
def do_skills(data, conn):
# make skill table
table = """
@ -70,8 +71,7 @@ CREATE TABLE sourceentry_skill (
# insert basics into skill table
inp_data = []
for i in data['skill']:
inp_data.append(
(i['name'], i['descr']))
inp_data.append((i['name'], i['descr']))
stmt = "INSERT INTO skill (name, descr) VALUES (?,?)"
try:
@ -167,6 +167,7 @@ CREATE TABLE sourceentry (
c = conn.cursor()
c.execute(table)
def do_sources(data, conn):
table = """
CREATE TABLE source (