Commit 681f5ccaaf2034f58c6b65d5457dba85bcbb7466
1 parent
755f319a
Exists in
master
and in
1 other branch
irrelevant change, for testing
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
BUGS.md
| 1 | - | ||
| 2 | # BUGS | 1 | # BUGS |
| 3 | 2 | ||
| 4 | -- se na especificacao de um curso, a referencia do topico nao existir como directorio, rebenta. | 3 | +- nao esta a respeitar o numero de tentativas `max_tries`. |
| 4 | +- se na especificacao de um curso, a referencia do topico nao existir como | ||
| 5 | + directorio, rebenta. | ||
| 5 | - internal server error ao fazer logout no macos python3.8 | 6 | - internal server error ao fazer logout no macos python3.8 |
| 6 | - GET can get filtered by browser cache | 7 | - GET can get filtered by browser cache |
| 7 | - topicos chapter devem ser automaticamente completos assim que as dependencias | 8 | - topicos chapter devem ser automaticamente completos assim que as dependencias |
aprendizations/questions.py
| 1 | ''' | 1 | ''' |
| 2 | -Classes the implement several types of questions. | 2 | +File: aprendizations/questions.py |
| 3 | +Description: Classes the implement several types of questions. | ||
| 3 | ''' | 4 | ''' |
| 4 | 5 | ||
| 5 | 6 | ||
| @@ -84,6 +85,7 @@ class QuestionRadio(Question): | @@ -84,6 +85,7 @@ class QuestionRadio(Question): | ||
| 84 | choose (int) # only used if shuffle=True | 85 | choose (int) # only used if shuffle=True |
| 85 | ''' | 86 | ''' |
| 86 | 87 | ||
| 88 | + # ------------------------------------------------------------------------ | ||
| 87 | def gen(self) -> None: | 89 | def gen(self) -> None: |
| 88 | ''' | 90 | ''' |
| 89 | Sets defaults, performs checks and generates the actual question | 91 | Sets defaults, performs checks and generates the actual question |
| @@ -692,4 +694,4 @@ class QFactory(): | @@ -692,4 +694,4 @@ class QFactory(): | ||
| 692 | # ------------------------------------------------------------------------ | 694 | # ------------------------------------------------------------------------ |
| 693 | def generate(self) -> Question: | 695 | def generate(self) -> Question: |
| 694 | '''generate question (synchronous version)''' | 696 | '''generate question (synchronous version)''' |
| 695 | - return asyncio.get_event_loop().run_until_complete(self.gen_async()) | 697 | - return asyncio.get_event_loop().run_until_complete(self.gen_async()) |
| 698 | + return asyncio.get_event_loop().run_until_complete(self.gen_async()) | ||
| 696 | \ No newline at end of file | 699 | \ No newline at end of file |