CONSISTENCY! Removed all dots in docs, removed blank lines and useless try/except, uppercased all sql statements

This commit is contained in:
mrhanky
2017-08-22 16:15:52 +02:00
parent 6f36c7ed9f
commit a931d31e39
12 changed files with 98 additions and 110 deletions

View File

@@ -20,10 +20,10 @@ def parse_int(val: str, select: bool = True) -> Tuple[int, str]:
val = int(val)
if val is not 0:
if val < 1:
order = 'desc'
order = 'DESC'
val *= -1
else:
order = 'asc'
order = 'ASC'
if select:
val -= 1
return val, order