Rename post_photo_searchhidden -> post_batch_photos_searchidden.
This commit is contained in:
parent
193c8645ed
commit
7762a8ff07
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ def post_batch_photos_refresh_metadata():
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@decorators.catch_etiquette_exception
|
@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):
|
if isinstance(photo_ids, str):
|
||||||
photo_ids = etiquette.helpers.comma_space_split(photo_ids)
|
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'])
|
@site.route('/batch/photos/set_searchhidden', methods=['POST'])
|
||||||
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
|
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
|
||||||
def post_batch_photos_set_searchhidden():
|
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
|
return response
|
||||||
|
|
||||||
@site.route('/batch/photos/unset_searchhidden', methods=['POST'])
|
@site.route('/batch/photos/unset_searchhidden', methods=['POST'])
|
||||||
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
|
@decorators.required_fields(['photo_ids'], forbid_whitespace=True)
|
||||||
def post_batch_photos_unset_searchhidden():
|
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
|
return response
|
||||||
|
|
||||||
# Clipboard ########################################################################################
|
# Clipboard ########################################################################################
|
||||||
|
|
Loading…
Reference in a new issue