2019-07-06 23:00:00 -07:00
|
|
|
import threading
|
|
|
|
import time
|
|
|
|
import os
|
|
|
|
import sqlite3
|
|
|
|
from comicapi import comicarchive
|
|
|
|
from comicapi.issuestring import IssueString
|
|
|
|
from urllib import parse
|
2019-07-11 17:35:30 -07:00
|
|
|
from io import BytesIO
|
|
|
|
from PIL import Image
|
2019-07-15 22:51:10 -07:00
|
|
|
import datetime, pytz
|
|
|
|
from werkzeug.security import generate_password_hash
|
2019-07-06 23:00:00 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2019-07-15 22:51:10 -07:00
|
|
|
print(generate_password_hash("guanfacine"))
|