import threading import time import os import sqlite3 from comicapi import comicarchive from comicapi.issuestring import IssueString from urllib import parse from io import BytesIO from PIL import Image import datetime, pytz from werkzeug.security import generate_password_hash os.environ["UNRAR_LIB_PATH"] = 'C:\\Program Files (x86)\\UnrarDLL\\UnRAR.dll' DATABASE = "C:\\Users\\Matthew\\Documents\\MyPrograms\\Websites\\rpi web interface\\database.db" db = sqlite3.connect(DATABASE) def get_db(): return db print(generate_password_hash("guanfacine"))