mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 10:54:32 +02:00
extracts= accepts tuple as well as list
This commit is contained in:
parent
ec3d3b2978
commit
afad1f70d0
2 changed files with 21 additions and 10 deletions
|
|
@ -1033,6 +1033,6 @@ def _hash(record):
|
|||
def resolve_extracts(extracts):
|
||||
if extracts is None:
|
||||
extracts = {}
|
||||
if isinstance(extracts, list):
|
||||
if isinstance(extracts, (list, tuple)):
|
||||
extracts = {item: item for item in extracts}
|
||||
return extracts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue