rpiwebapp-public/test.py

24 lines
559 B
Python
Raw Normal View History

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
from io import BytesIO
from PIL import Image
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
print(generate_password_hash("guanfacine"))