Function that gets all episodes that are verified from database

This commit is contained in:
2017-03-05 13:57:11 +01:00
parent 2fed63c1de
commit 4270c80e12

25
folderCreator.py Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2017-03-05 13:52:45
# @Last Modified by: KevinMidboe
# @Last Modified time: 2017-03-05 13:55:09
import sqlite3
dbPath = 'shows.db'
def findVerified():
conn = sqlite3.connect(dbPath)
c = conn.cursor()
c.execute('SELECT * FROM stray_episodes WHERE verified = 1')
for item in c.fetchone():
print(item)
def main():
findVerified()
if __name__ == '__main__':
main()