minor bugfixes

This commit is contained in:
2020-05-01 23:20:37 +00:00
parent 2d41d0c0bb
commit 98646f3226
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ def is_int(val: str) -> bool:
def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
try:
val = int(val)
if val is not 0:
if val != 0:
if val < 1:
order = 'DESC'
val *= -1