Rename functions

This commit is contained in:
Ventilaar 2024-04-21 00:31:25 +02:00
parent 1d5934275c
commit f6da232164
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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)