quotes: add quote searching

This commit is contained in:
2019-12-08 19:35:10 +00:00
parent 81c22bf6a4
commit db797b4fef
2 changed files with 39 additions and 5 deletions

View File

@@ -12,6 +12,10 @@ def date_from_iso(date: str) -> datetime:
return datetime.strptime(date, '%Y-%m-%dT%H:%M:%S.%fZ')
def is_int(val: str) -> bool:
return val.isdigit() or (val.startswith('+') or val.startswith('-')) and val[1:].isdigit()
def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
try:
val = int(val)