small tweaks
This commit is contained in:
12
data.py
12
data.py
@@ -122,18 +122,6 @@ class MsgData:
|
||||
|
||||
return res
|
||||
|
||||
def biggest_daddy(self, days, top: int = None):
|
||||
df = self.emoji_totals('daddy', days)
|
||||
if top is not None:
|
||||
df = df.iloc[:top]
|
||||
width = max(list(map(lambda s: len(str(s)), df.index.values)))
|
||||
res = f'Daddy totals, past {days} days\n'
|
||||
res += '\n'.join(
|
||||
f"`{name.ljust(width + 1)}with {row['total']:<2.0f} total`"
|
||||
for name, row in df.iterrows()
|
||||
)
|
||||
return res
|
||||
|
||||
async def biggest_single(self, client: discord.Client, emoji: str, days: int) -> str:
|
||||
data = self.emoji_totals(emoji_name=emoji, days=days)
|
||||
username = data.index[0]
|
||||
|
||||
Reference in New Issue
Block a user