Compare commits

..

3 Commits

Author SHA1 Message Date
renovate[bot]
faf716cb7e fix(deps): update dependency gunicorn to v22 (#3479)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 23:07:01 -05:00
Michael Genson
46f1ad7941 fix: Bad Recipe Rating Calc Preventing App Startup (#3475) 2024-04-16 20:47:15 +00:00
p0lycarpio
6e1112c73e fix: make groups private by default (#3474) 2024-04-16 15:12:00 -05:00
4 changed files with 13 additions and 13 deletions

View File

@@ -260,13 +260,12 @@ def receive_description(target: RecipeModel, value: str, oldvalue, initiator):
@event.listens_for(RecipeModel, "before_update") @event.listens_for(RecipeModel, "before_update")
def calculate_rating(mapper, connection, target: RecipeModel): def calculate_rating(mapper, connection, target: RecipeModel):
session = object_session(target) session = object_session(target)
if not session: if not (session and session.is_modified(target, "rating")):
return return
if session.is_modified(target, "rating"): history = get_history(target, "rating")
history = get_history(target, "rating") old_value = history.deleted[0] if history.deleted else None
old_value = history.deleted[0] if history.deleted else None new_value = history.added[0] if history.added else None
new_value = history.added[0] if history.added else None
if old_value == new_value: if old_value == new_value:
return return

View File

@@ -6,7 +6,7 @@ from mealie.schema._mealie import MealieModel
class UpdateGroupPreferences(MealieModel): class UpdateGroupPreferences(MealieModel):
private_group: bool = False private_group: bool = True
first_day_of_week: int = 0 first_day_of_week: int = 0
# Recipe Defaults # Recipe Defaults

13
poetry.lock generated
View File

@@ -752,22 +752,23 @@ test = ["objgraph", "psutil"]
[[package]] [[package]]
name = "gunicorn" name = "gunicorn"
version = "21.2.0" version = "22.0.0"
description = "WSGI HTTP Server for UNIX" description = "WSGI HTTP Server for UNIX"
optional = false optional = false
python-versions = ">=3.5" python-versions = ">=3.7"
files = [ files = [
{file = "gunicorn-21.2.0-py3-none-any.whl", hash = "sha256:3213aa5e8c24949e792bcacfc176fef362e7aac80b76c56f6b5122bf350722f0"}, {file = "gunicorn-22.0.0-py3-none-any.whl", hash = "sha256:350679f91b24062c86e386e198a15438d53a7a8207235a78ba1b53df4c4378d9"},
{file = "gunicorn-21.2.0.tar.gz", hash = "sha256:88ec8bff1d634f98e61b9f65bc4bf3cd918a90806c6f5c48bc5603849ec81033"}, {file = "gunicorn-22.0.0.tar.gz", hash = "sha256:4a0b436239ff76fb33f11c07a16482c521a7e09c1ce3cc293c2330afe01bec63"},
] ]
[package.dependencies] [package.dependencies]
packaging = "*" packaging = "*"
[package.extras] [package.extras]
eventlet = ["eventlet (>=0.24.1)"] eventlet = ["eventlet (>=0.24.1,!=0.36.0)"]
gevent = ["gevent (>=1.4.0)"] gevent = ["gevent (>=1.4.0)"]
setproctitle = ["setproctitle"] setproctitle = ["setproctitle"]
testing = ["coverage", "eventlet", "gevent", "pytest", "pytest-cov"]
tornado = ["tornado (>=0.2)"] tornado = ["tornado (>=0.2)"]
[[package]] [[package]]
@@ -3199,4 +3200,4 @@ pgsql = ["psycopg2-binary"]
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "^3.10" python-versions = "^3.10"
content-hash = "7c5f6bf8660394ee97b85b575f3cefd705bbd3939db2b20ccc988047822dbc5d" content-hash = "d76feaaf58b595aaadd038f8906bd159c2799e291115b8e9689d3bfeef3f4c54"

View File

@@ -21,7 +21,7 @@ apprise = "^1.4.5"
bcrypt = "^4.0.1" bcrypt = "^4.0.1"
extruct = "^0.16.0" extruct = "^0.16.0"
fastapi = "^0.110.0" fastapi = "^0.110.0"
gunicorn = "^21.0.0" gunicorn = "^22.0.0"
httpx = "^0.27.0" httpx = "^0.27.0"
lxml = "^5.0.0" lxml = "^5.0.0"
orjson = "^3.8.0" orjson = "^3.8.0"