Added a few future methods
This commit is contained in:
18
main.py
18
main.py
@@ -118,9 +118,9 @@ def listPodcasts(userID):
|
|||||||
output = []
|
output = []
|
||||||
y = 0
|
y = 0
|
||||||
# grabs podcast urls from logged in user
|
# 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 = {}
|
||||||
result['podcastID'] = each.podcastID
|
result['podcastID'] = each.podcastID
|
||||||
result['Title'] = each.title
|
result['Title'] = each.title
|
||||||
@@ -149,5 +149,19 @@ def updateStatus(userID, podcastID, status):
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/updateTime/<int:userID>/<int:podcastID>/<int:time>')
|
||||||
|
def updateTime(userID, podcastID,time):
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/deleteUser/<int:userID>')
|
||||||
|
def deleteUser(userID):
|
||||||
|
return''
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/removeFeed/<int:userID>/<int:podcastID>')
|
||||||
|
def removeFeed(userID, podcastID):
|
||||||
|
return ''
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host='0.0.0.0', debug=True)
|
app.run(host='0.0.0.0', debug=True)
|
||||||
Reference in New Issue
Block a user