Commit cad28d3325a24e6fc036d7a19622667ca15a102a

Authored by Miguel Barão
1 parent 60be4ab6
Exists in master and in 1 other branch dev

update bootstrap version

aprendizations/questions.py
... ... @@ -520,7 +520,8 @@ class QuestionTextArea(Question):
520 520  
521 521 if out is None:
522 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 525 self['grade'] = 0.0
525 526 elif isinstance(out, dict):
526 527 self['comments'] = out.get('comments', '')
... ... @@ -550,7 +551,8 @@ class QuestionTextArea(Question):
550 551  
551 552 if out is None:
552 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 556 self['grade'] = 0.0
555 557 elif isinstance(out, dict):
556 558 self['comments'] = out.get('comments', '')
... ... @@ -694,4 +696,4 @@ class QFactory():
694 696 # ------------------------------------------------------------------------
695 697 def generate(self) -> Question:
696 698 '''generate question (synchronous version)'''
697   - return asyncio.get_event_loop().run_until_complete(self.gen_async())
698 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 2 <script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
3 3  
4 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 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">
... ...