Commit cad28d3325a24e6fc036d7a19622667ca15a102a
1 parent
60be4ab6
Exists in
master
and in
1 other branch
update bootstrap version
Showing
2 changed files
with
8 additions
and
6 deletions
Show diff stats
aprendizations/questions.py
@@ -520,7 +520,8 @@ class QuestionTextArea(Question): | @@ -520,7 +520,8 @@ class QuestionTextArea(Question): | ||
520 | 520 | ||
521 | if out is None: | 521 | if out is None: |
522 | logger.warning('No grade after running "%s".', self["correct"]) | 522 | logger.warning('No grade after running "%s".', self["correct"]) |
523 | - self['comments'] = 'O programa de correcção abortou...' | 523 | + self['comments'] = ('Erro interno durante a correcção. ' |
524 | + 'Por favor reporte este erro') | ||
524 | self['grade'] = 0.0 | 525 | self['grade'] = 0.0 |
525 | elif isinstance(out, dict): | 526 | elif isinstance(out, dict): |
526 | self['comments'] = out.get('comments', '') | 527 | self['comments'] = out.get('comments', '') |
@@ -550,7 +551,8 @@ class QuestionTextArea(Question): | @@ -550,7 +551,8 @@ class QuestionTextArea(Question): | ||
550 | 551 | ||
551 | if out is None: | 552 | if out is None: |
552 | logger.warning('No grade after running "%s".', self["correct"]) | 553 | logger.warning('No grade after running "%s".', self["correct"]) |
553 | - self['comments'] = 'O programa de correcção abortou...' | 554 | + self['comments'] = ('Erro interno durante a correcção. ' |
555 | + 'Por favor reporte este erro') | ||
554 | self['grade'] = 0.0 | 556 | self['grade'] = 0.0 |
555 | elif isinstance(out, dict): | 557 | elif isinstance(out, dict): |
556 | self['comments'] = out.get('comments', '') | 558 | self['comments'] = out.get('comments', '') |
@@ -694,4 +696,4 @@ class QFactory(): | @@ -694,4 +696,4 @@ class QFactory(): | ||
694 | # ------------------------------------------------------------------------ | 696 | # ------------------------------------------------------------------------ |
695 | def generate(self) -> Question: | 697 | def generate(self) -> Question: |
696 | '''generate question (synchronous version)''' | 698 | '''generate question (synchronous version)''' |
697 | - return asyncio.get_event_loop().run_until_complete(self.gen_async()) | ||
698 | \ No newline at end of file | 699 | \ No newline at end of file |
700 | + return asyncio.get_event_loop().run_until_complete(self.gen_async()) |
aprendizations/templates/include-libs.html
@@ -2,8 +2,8 @@ | @@ -2,8 +2,8 @@ | ||
2 | <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script> | 2 | <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script> |
3 | 3 | ||
4 | <!-- bootstrap --> | 4 | <!-- bootstrap --> |
5 | -<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> | ||
6 | -<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script> | 5 | +<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> |
6 | +<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script> | ||
7 | 7 | ||
8 | <!-- bootstrap icons --> | 8 | <!-- bootstrap icons --> |
9 | -<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css"> | 9 | +<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css"> |