Skip to content

Commit

Permalink
remove extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Jan 21, 2025
1 parent 29c3bcc commit 6228d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def update_ingest_on_patch(updates: Dict[str, Any], original: Dict[str, Any]):
# The local version has not been published yet
# So remove the provided ``pubstatus``
updates.pop("pubstatus", None)
elif original.get("pubstatus") == updates.get("ingest_pubstatus") or original.get("pubstatus"):
elif original.get("pubstatus") == updates.get("ingest_pubstatus"):
# The local version has been published
# and no change to ``pubstatus`` on ingested item
updates.pop("state")
Expand Down

0 comments on commit 6228d18

Please sign in to comment.