Rename functions
This commit is contained in:
parent
1d5934275c
commit
f6da232164
|
@ -42,7 +42,7 @@ def websub(cap):
|
|||
@bp.route('/queue/<cap>', methods=['POST'])
|
||||
def queue(cap):
|
||||
# if endpoint does not exist
|
||||
if not get_nosql().poster_isActive(cap):
|
||||
if not get_nosql().queue_isActive(cap):
|
||||
return abort(404)
|
||||
|
||||
videoId = request.form.get('v')
|
||||
|
@ -60,7 +60,7 @@ def queue(cap):
|
|||
return abort(409)
|
||||
|
||||
# try to insert
|
||||
if get_nosql().poster_insertQueue(videoId, cap):
|
||||
if get_nosql().queue_insertQueue(videoId, cap):
|
||||
return '', 202
|
||||
else:
|
||||
return abort(409)
|
Loading…
Reference in New Issue