rpiwebapp-public/test.py
Matthew Welch c49eb99cd2 Added users and thumbnails
Added users so that the site can only be used if logged in. Thumbnails for each comic are also generated with ImageMagick.
2019-07-15 22:51:10 -07:00

24 lines
559 B
Python

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"))