Skip to content

Commit dbe4450

Browse files
author
MarcoBenelli
committed
Bug fix
1 parent 204c70d commit dbe4450

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Download the file for your operating system from [latest release](https://github
99
Alternatively, if you want to build the application on your own, follow the instructions in the [Build](#build) section.
1010

1111
## Build
12-
Clone the repository in a directory of your choice:
12+
Clone the repository in a directory of your choice(required `git`):
1313
```sh
1414
git clone https://github.com/lucabindini/study_and_repeat
1515
```

src/model/deck.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ def get_card(self) -> card.Card:
9797
def calculate_delay(self, correctness: bool) -> None:
9898
c = (self._new_queue if self._is_new else self._queues[0]).popleft()
9999

100+
self._is_new = not self._is_new
100101
# to avoid asking the same question twice in a row
101-
if self._queues[0]:
102-
self._is_new = not self._is_new
102+
if not self._queues[0]:
103+
self._is_new = True
103104

104105
if correctness:
105106
while len(self._queues) <= self._cards_strengths[c.identifier]:

0 commit comments

Comments
 (0)