Skip to content

Commit

Permalink
Fixed DB
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkauffmann committed Nov 13, 2020
1 parent de1d048 commit 12fe772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def getData(self, amount=0):
cursor.execute(query)
rows = cursor.fetchall()

amount = amount if len(rows) < 10 else len(rows)
amount = len(rows) if len(rows) < amount else amount

leader_board = []
for i in range(amount):
Expand Down

0 comments on commit 12fe772

Please sign in to comment.