Skip to content

Commit

Permalink
pylint-virheet korjattu
Browse files Browse the repository at this point in the history
  • Loading branch information
vejol committed Apr 25, 2023
1 parent 4c6bd81 commit 24625e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/repositories/quiz_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def delete_all(self):

def find_all_quizzes(self):
quiz_names = self.find_quiz_names()

quizzes = {}
for name in quiz_names:
quizzes[name] = self.find_quiz(name)
Expand Down
6 changes: 3 additions & 3 deletions src/services/game_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def add_point_team1(self):
def add_point_team2(self):
self.team2_points += 1

def reveal_field(self, n):
self._revealed[n] = True
return self._current_puzzle.words[n]
def reveal_field(self, index):
self._revealed[index] = True
return self._current_puzzle.words[index]

0 comments on commit 24625e1

Please sign in to comment.