Skip to content

Commit

Permalink
api.schedule.ProposalC3VOCPublishingWebhook: when clearing fields, se…
Browse files Browse the repository at this point in the history
…t to None
  • Loading branch information
Kunsi committed Aug 31, 2024
1 parent c634272 commit ac82add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def post(self):
app.logger.warning(
f"C3VOC webhook cleared c3voc_url for {proposal.id=}, was {proposal.c3voc_url}"
)
proposal.c3voc_url = ""
proposal.c3voc_url = None

if payload["youtube"]["enabled"]:
if payload["youtube"]["urls"]:
Expand Down Expand Up @@ -239,7 +239,7 @@ def post(self):
app.logger.warning(
f"C3VOC webhook cleared youtube_url for {proposal.id=}, was {proposal.youtube_url}"
)
proposal.youtube_url = ""
proposal.youtube_url = None

db.session.add(proposal)
db.session.commit()
Expand Down

0 comments on commit ac82add

Please sign in to comment.