Added a !translate command, utilizing the Google API.
Fix for a few more ValueErrors (printing float > int, without conversation)
This commit is contained in:
@@ -46,7 +46,7 @@ class ContractController(BaseModule):
|
||||
"where org_name IS NOT NULL GROUP BY org_name ORDER BY contracts desc", [])
|
||||
page = int(named_params.page or "1")
|
||||
offset = (page - 1) * self.PAGE_SIZE
|
||||
data = [x for x in data if x.contracts > min_ql]
|
||||
data = [x for x in data if x.contracts and x.contracts > min_ql]
|
||||
return self.format_pagination(data, offset, page, f"Tower Contracts ({len(data)})",
|
||||
f"There are no orgs with more than "
|
||||
f"<highlight>{min_ql}</highlight> contract points.",
|
||||
|
||||
Reference in New Issue
Block a user