Skip to content

Commit 044856a

Browse files
Add PodcastID to return_pods
1 parent f7079ae commit 044856a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

database_functions/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def return_podcast_episodes(database_type, cnx, user_id, podcast_id):
307307
else: # Assuming MariaDB/MySQL if not PostgreSQL
308308
cursor = cnx.cursor(dictionary=True)
309309

310-
query = (f"SELECT Podcasts.PodcastName, Episodes.EpisodeTitle, Episodes.EpisodePubDate, "
310+
query = (f"SELECT Podcasts.PodcastID, Podcasts.PodcastName, Episodes.EpisodeID, Episodes.EpisodeTitle, Episodes.EpisodePubDate, "
311311
f"Episodes.EpisodeDescription, Episodes.EpisodeArtwork, Episodes.EpisodeURL, Episodes.EpisodeDuration, "
312312
f"UserEpisodeHistory.ListenDuration "
313313
f"FROM Episodes "
@@ -423,7 +423,7 @@ def return_pods(database_type, cnx, user_id):
423423
else: # Assuming MariaDB/MySQL if not PostgreSQL
424424
cursor = cnx.cursor(dictionary=True)
425425

426-
query = ("SELECT PodcastName, ArtworkURL, Description, EpisodeCount, WebsiteURL, FeedURL, Author, Categories "
426+
query = ("SELECT PodcastID, PodcastName, ArtworkURL, Description, EpisodeCount, WebsiteURL, FeedURL, Author, Categories "
427427
"FROM Podcasts "
428428
"WHERE UserID = %s")
429429

0 commit comments

Comments
 (0)