Skip to content

Commit

Permalink
Do not update the weblink ID
Browse files Browse the repository at this point in the history
  • Loading branch information
le717 committed Aug 17, 2021
1 parent 0bd7ef2 commit d9088aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 1.0.3

_Unreleased_
_Released August 17, 2021_

- Escape link info on update
- Rename gunicorn logs to not clobber other logs with the same name
- Do not update a link ID on link update

# 1.0.2

Expand Down
2 changes: 1 addition & 1 deletion src/core/database/weblink.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def update(data: OrderedDict) -> bool:
return False

db.session.query(WebLink).filter_by(id=data["id"]).update(
{k: Markup(v).striptags() for k, v in data.items()},
{k: Markup(v).striptags() for k, v in data.items() if k != "id"},
synchronize_session="fetch",
)
db.session.commit()
Expand Down

0 comments on commit d9088aa

Please sign in to comment.