From 63841a2ba03217ce05c2238640060db2566eb44c Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Sat, 7 Mar 2020 20:02:58 -0500 Subject: [PATCH] Added a few future methods --- main.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3df949c..ec9a3c0 100644 --- a/main.py +++ b/main.py @@ -118,9 +118,9 @@ def listPodcasts(userID): output = [] y = 0 # grabs podcast urls from logged in user - mreh = podcasts.query.filter_by(userID=userID).all() + pc = podcasts.query.filter_by(userID=userID).all() - for each in mreh: + for each in pc: result = {} result['podcastID'] = each.podcastID result['Title'] = each.title @@ -149,5 +149,19 @@ def updateStatus(userID, podcastID, status): return '' +@app.route('/updateTime///') +def updateTime(userID, podcastID,time): + return '' + + +@app.route('/deleteUser/') +def deleteUser(userID): + return'' + + +@app.route('/removeFeed//') +def removeFeed(userID, podcastID): + return '' + if __name__ == "__main__": app.run(host='0.0.0.0', debug=True) \ No newline at end of file