Merge pull request #1370 from evandroforks/add_missing_none

Fix previous card attribute not initialized
This commit is contained in:
Damien Elmes 2021-09-15 20:00:35 +10:00 committed by GitHub
commit be471f8bde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,7 @@ class Reviewer:
self.web = mw.web self.web = mw.web
self.card: Optional[Card] = None self.card: Optional[Card] = None
self.cardQueue: List[Card] = [] self.cardQueue: List[Card] = []
self.previous_card: Optional[Card] = None
self.hadCardQueue = False self.hadCardQueue = False
self._answeredIds: List[CardId] = [] self._answeredIds: List[CardId] = []
self._recordedAudio: Optional[str] = None self._recordedAudio: Optional[str] = None