ver Jan11th
finally set up a simple task, or which should be simple
This commit is contained in:
@@ -13,7 +13,7 @@ from rapidfuzz import fuzz
|
||||
import functools
|
||||
import re
|
||||
|
||||
def _match_record(pattern: Dict[str, str], item: Dict[str, str]) -> float:
|
||||
def _match_record(pattern: Dict[str, str], item: Dict[str, str]) -> bool:
|
||||
return all(k in item and item[k]==val for k, val in pattern.items())
|
||||
|
||||
def check_csv(result: str, rules: Dict[str, List[Dict[str, str]]]) -> float:
|
||||
|
||||
Reference in New Issue
Block a user