mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-13 03:06:23 +00:00
fix: database
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
from api.backend.database.common import connect, QUERIES
|
from api.backend.database.common import connect, QUERIES, insert
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from api.backend.auth.auth_utils import get_password_hash
|
from api.backend.auth.auth_utils import get_password_hash
|
||||||
@@ -31,7 +31,7 @@ def init_database():
|
|||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
query = "INSERT INTO users (email, hashed_password, full_name) VALUES (?, ?, ?)"
|
query = "INSERT INTO users (email, hashed_password, full_name) VALUES (?, ?, ?)"
|
||||||
_ = cursor.execute(
|
_ = insert(
|
||||||
query,
|
query,
|
||||||
(
|
(
|
||||||
default_user_email,
|
default_user_email,
|
||||||
|
|||||||
Reference in New Issue
Block a user