mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-07 09:02:32 +00:00
Python37 (#12)
* add dist: xenial * try travis fix with matrix include. * remove unnecessary elif
This commit is contained in:
@@ -54,7 +54,7 @@ def calculate_score(post):
|
||||
def get_safe_per_page(limit):
|
||||
if limit < 5:
|
||||
return 5
|
||||
elif limit > 40:
|
||||
if limit > 40:
|
||||
return 40
|
||||
return limit
|
||||
|
||||
|
@@ -29,7 +29,7 @@ def get_terminal_width():
|
||||
def get_vote_color(score):
|
||||
if score > 0:
|
||||
return Fore.GREEN + " [+" + str(score) + "] "
|
||||
elif score < 0:
|
||||
if score < 0:
|
||||
return Fore.RED + " [" + str(score) + "] "
|
||||
return Fore.BLUE + " [" + str(score) + "] "
|
||||
|
||||
|
Reference in New Issue
Block a user