Rename post_photo_searchhidden -> post_batch_photos_searchidden.

This commit is contained in:
voussoir 2020-09-09 19:27:22 -07:00
parent 193c8645ed
commit 7762a8ff07

View file

@ -194,7 +194,7 @@ def post_batch_photos_refresh_metadata():
return response
@decorators.catch_etiquette_exception
def post_photo_searchhidden_core(photo_ids, searchhidden):
def post_batch_photos_searchhidden_core(photo_ids, searchhidden):
if isinstance(photo_ids, str):
photo_ids = etiquette.helpers.comma_space_split(photo_ids)
@ -210,13 +210,13 @@ def post_photo_searchhidden_core(photo_ids, searchhidden):
@site.route('/batch/photos/set_searchhidden', methods=['POST'])
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
def post_batch_photos_set_searchhidden():
response = post_photo_searchhidden_core(photo_ids=request.form['photo_ids'], searchhidden=True)
response = post_batch_photos_searchhidden_core(photo_ids=request.form['photo_ids'], searchhidden=True)
return response
@site.route('/batch/photos/unset_searchhidden', methods=['POST'])
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
def post_batch_photos_unset_searchhidden():
response = post_photo_searchhidden_core(photo_ids=request.form['photo_ids'], searchhidden=False)
response = post_batch_photos_searchhidden_core(photo_ids=request.form['photo_ids'], searchhidden=False)
return response
# Clipboard ########################################################################################