mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-07 00:13:12 -05:00
Feature/user photo storage (#877)
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
This commit is contained in:
@@ -39,7 +39,9 @@ def main():
|
||||
db = get_database(session)
|
||||
|
||||
try:
|
||||
init_user = db.users.get("1", "id")
|
||||
init_user = db.users.get_all()
|
||||
if not init_user:
|
||||
raise Exception("No users found in database")
|
||||
except Exception:
|
||||
init_db(db)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user