mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-25 01:03:13 -05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faf716cb7e | ||
|
|
46f1ad7941 | ||
|
|
6e1112c73e |
@@ -260,10 +260,9 @@ def receive_description(target: RecipeModel, value: str, oldvalue, initiator):
|
||||
@event.listens_for(RecipeModel, "before_update")
|
||||
def calculate_rating(mapper, connection, target: RecipeModel):
|
||||
session = object_session(target)
|
||||
if not session:
|
||||
if not (session and session.is_modified(target, "rating")):
|
||||
return
|
||||
|
||||
if session.is_modified(target, "rating"):
|
||||
history = get_history(target, "rating")
|
||||
old_value = history.deleted[0] if history.deleted else None
|
||||
new_value = history.added[0] if history.added else None
|
||||
|
||||
@@ -6,7 +6,7 @@ from mealie.schema._mealie import MealieModel
|
||||
|
||||
|
||||
class UpdateGroupPreferences(MealieModel):
|
||||
private_group: bool = False
|
||||
private_group: bool = True
|
||||
first_day_of_week: int = 0
|
||||
|
||||
# Recipe Defaults
|
||||
|
||||
13
poetry.lock
generated
13
poetry.lock
generated
@@ -752,22 +752,23 @@ test = ["objgraph", "psutil"]
|
||||
|
||||
[[package]]
|
||||
name = "gunicorn"
|
||||
version = "21.2.0"
|
||||
version = "22.0.0"
|
||||
description = "WSGI HTTP Server for UNIX"
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
python-versions = ">=3.7"
|
||||
files = [
|
||||
{file = "gunicorn-21.2.0-py3-none-any.whl", hash = "sha256:3213aa5e8c24949e792bcacfc176fef362e7aac80b76c56f6b5122bf350722f0"},
|
||||
{file = "gunicorn-21.2.0.tar.gz", hash = "sha256:88ec8bff1d634f98e61b9f65bc4bf3cd918a90806c6f5c48bc5603849ec81033"},
|
||||
{file = "gunicorn-22.0.0-py3-none-any.whl", hash = "sha256:350679f91b24062c86e386e198a15438d53a7a8207235a78ba1b53df4c4378d9"},
|
||||
{file = "gunicorn-22.0.0.tar.gz", hash = "sha256:4a0b436239ff76fb33f11c07a16482c521a7e09c1ce3cc293c2330afe01bec63"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
packaging = "*"
|
||||
|
||||
[package.extras]
|
||||
eventlet = ["eventlet (>=0.24.1)"]
|
||||
eventlet = ["eventlet (>=0.24.1,!=0.36.0)"]
|
||||
gevent = ["gevent (>=1.4.0)"]
|
||||
setproctitle = ["setproctitle"]
|
||||
testing = ["coverage", "eventlet", "gevent", "pytest", "pytest-cov"]
|
||||
tornado = ["tornado (>=0.2)"]
|
||||
|
||||
[[package]]
|
||||
@@ -3199,4 +3200,4 @@ pgsql = ["psycopg2-binary"]
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "7c5f6bf8660394ee97b85b575f3cefd705bbd3939db2b20ccc988047822dbc5d"
|
||||
content-hash = "d76feaaf58b595aaadd038f8906bd159c2799e291115b8e9689d3bfeef3f4c54"
|
||||
|
||||
@@ -21,7 +21,7 @@ apprise = "^1.4.5"
|
||||
bcrypt = "^4.0.1"
|
||||
extruct = "^0.16.0"
|
||||
fastapi = "^0.110.0"
|
||||
gunicorn = "^21.0.0"
|
||||
gunicorn = "^22.0.0"
|
||||
httpx = "^0.27.0"
|
||||
lxml = "^5.0.0"
|
||||
orjson = "^3.8.0"
|
||||
|
||||
Reference in New Issue
Block a user