Fixed typo

This commit is contained in:
Simon 2018-07-19 16:20:07 -04:00
parent e533bc9825
commit c6826734c3
3 changed files with 7 additions and 7 deletions

View File

@ -17,4 +17,4 @@ youtube-dl -v --print-traffic --restrict-filename --write-description --write-in
* Run `import.py` * Run `import.py`
### Schema: ### Schema:
![schema](https://user-images.githubusercontent.com/7120851/42966031-cb83f216-8b69-11e8-9c9e-a8bcefdc7456.png) ![schema](https://user-images.githubusercontent.com/7120851/42967825-72bc88fe-8b6f-11e8-81a7-f8e7e17077d8.png)

View File

@ -148,7 +148,7 @@ def create_format(cursor, **kwargs):
def create_chapter(cursor, video_id, start_time, end_time, title): def create_chapter(cursor, video_id, start_time, end_time, title):
cursor.execute('INSERT INTO chatper (start_time, end_time, title, video_id) VALUES (%s,%s,%s,%s) ' cursor.execute('INSERT INTO chapter (start_time, end_time, title, video_id) VALUES (%s,%s,%s,%s) '
'ON CONFLICT DO NOTHING', 'ON CONFLICT DO NOTHING',
(start_time, end_time, title, video_id)) (start_time, end_time, title, video_id))
print("Created chapter for " + video_id) print("Created chapter for " + video_id)

View File

@ -156,21 +156,21 @@ create table subtitles
) )
; ;
create table chatper create table chapter
( (
id serial not null id serial not null
constraint chatper_pkey constraint chapter_pkey
primary key, primary key,
start_time integer not null, start_time integer not null,
end_time integer not null, end_time integer not null,
title text, title text,
video_id text not null video_id text not null
constraint chatper_video_id_fk constraint chapter_video_id_fk
references video references video
) )
; ;
create unique index chatper_id_uindex create unique index chapter_id_uindex
on chatper (id) on chapter (id)
; ;