mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-21 15:34:05 +00:00
Rename bulk_set_needs_verify to bulk_update_needs_verify for readability
Amp-Thread-ID: https://ampcode.com/threads/T-019c3167-e8f1-7409-904b-5fc0edaeef37 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -9,7 +9,7 @@ from app.assets.database.queries import (
|
||||
get_unreferenced_unhashed_asset_ids,
|
||||
delete_assets_by_ids,
|
||||
get_cache_states_for_prefixes,
|
||||
bulk_set_needs_verify,
|
||||
bulk_update_needs_verify,
|
||||
delete_cache_states_by_ids,
|
||||
delete_orphaned_seed_asset,
|
||||
bulk_insert_cache_states_ignore_conflicts,
|
||||
@@ -336,7 +336,7 @@ class TestBulkSetNeedsVerify:
|
||||
state2 = _make_cache_state(session, asset, "/path2.bin", needs_verify=False)
|
||||
session.commit()
|
||||
|
||||
updated = bulk_set_needs_verify(session, [state1.id, state2.id], True)
|
||||
updated = bulk_update_needs_verify(session, [state1.id, state2.id], True)
|
||||
session.commit()
|
||||
|
||||
assert updated == 2
|
||||
@@ -346,7 +346,7 @@ class TestBulkSetNeedsVerify:
|
||||
assert state2.needs_verify is True
|
||||
|
||||
def test_empty_list_updates_nothing(self, session: Session):
|
||||
updated = bulk_set_needs_verify(session, [], True)
|
||||
updated = bulk_update_needs_verify(session, [], True)
|
||||
assert updated == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user