Skip to content

Commit

Permalink
Fixed: clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
mazurwiktor committed Dec 19, 2019
1 parent 53df9e7 commit 286bfc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def __init__(self, table, clipboard):
def copy(self):
model = self.table.model
items = sorted(
[model.item(i) for i in range(model.rowCount())],
[model.item(i).player for i in range(model.rowCount())],
key=lambda i: i.damage,
reverse=True)
clip = "{}, FPM: {}\nDMG: \n".format(self.mode.currentText(), self.fame_per_minute)
for index, i in enumerate(items[:3]):
clip += '{}. {}-{}-{}%'.format(index+1, i.name, i.damage, i.percentage)
clip += '{}. {}-{}/{}-{}%'.format(index+1, i.name, i.damage, i.dps, i.percentage)
clip += "\n"
clip += "(AOStats https://git.io/JeBD1)"

Expand Down

0 comments on commit 286bfc4

Please sign in to comment.