Fix bug in adding producers

This commit is contained in:
2023-03-22 23:49:40 -04:00
parent 945776b885
commit 59d652a9c4
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class Podcast(TimeStampedModel):
podcast_dict = scrape_data_from_google_podcasts(self.name)
if podcast_dict:
if not self.producer:
self.producer = Producer.objects.get_or_create(
self.producer, created = Producer.objects.get_or_create(
name=podcast_dict["producer"]
)
self.description = podcast_dict.get("description")