Commit 9eecad27691ff16cabe64b49b671d5639937778e

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

- minor

Showing 2 changed files with 33 additions and 33 deletions   Show diff stats
demo/solar_system/questions.yaml
1 --- 1 ---
2 2
3 -# ---------------------------------------------------------------------------  
4 --  
5 - ref: solar-system  
6 - type: radio  
7 - title: Sistema solar  
8 - text: Qual é o maior planeta do Sistema Solar?  
9 - options:  
10 - - Mercúrio  
11 - - Marte  
12 - - Júpiter  
13 - - Têm todos o mesmo tamanho  
14 - # opcional  
15 - correct: 2  
16 - shuffle: False  
17 - discount: True 3 +# # ---------------------------------------------------------------------------
  4 +# -
  5 +# ref: solar-system
  6 +# type: radio
  7 +# title: Sistema solar
  8 +# text: Qual é o maior planeta do Sistema Solar?
  9 +# options:
  10 +# - Mercúrio
  11 +# - Marte
  12 +# - Júpiter
  13 +# - Têm todos o mesmo tamanho
  14 +# # opcional
  15 +# correct: 2
  16 +# shuffle: False
  17 +# discount: True
18 18
19 -# ---------------------------------------------------------------------------  
20 --  
21 - ref: home-planet  
22 - type: text  
23 - title: Sistema solar  
24 - text: O nosso planeta chama-se planeta...  
25 - correct: ['Terra', 'terra']  
26 - # opcional  
27 - answer: Não é Marte... 19 +# # ---------------------------------------------------------------------------
  20 +# -
  21 +# ref: home-planet
  22 +# type: text
  23 +# title: Sistema solar
  24 +# text: O nosso planeta chama-se planeta...
  25 +# correct: ['Terra', 'terra']
  26 +# # opcional
  27 +# answer: Não é Marte...
28 28
29 -# ---------------------------------------------------------------------------  
30 --  
31 - ref: saturn  
32 - type: text-regex  
33 - title: Sistema solar  
34 - text: O planeta do sistema solar conhecido por ter aneis é o planeta...  
35 - correct: !regex '[Ss]aturno' 29 +# # ---------------------------------------------------------------------------
  30 +# -
  31 +# ref: saturn
  32 +# type: text-regex
  33 +# title: Sistema solar
  34 +# text: O planeta do sistema solar conhecido por ter aneis é o planeta...
  35 +# correct: !regex '[Ss]aturno'
36 36
37 # --------------------------------------------------------------------------- 37 # ---------------------------------------------------------------------------
38 - 38 -
@@ -122,7 +122,7 @@ def show_students_in_database(session, verbose=False): @@ -122,7 +122,7 @@ def show_students_in_database(session, verbose=False):
122 raise 122 raise
123 else: 123 else:
124 n = len(users) 124 n = len(users)
125 - print(f'Users registered:') 125 + print(f'Registered users:')
126 if n == 0: 126 if n == 0:
127 print(' -- none --') 127 print(' -- none --')
128 else: 128 else:
@@ -152,7 +152,7 @@ if __name__=='__main__': @@ -152,7 +152,7 @@ if __name__=='__main__':
152 students.extend(get_students_from_csv(csvfile)) 152 students.extend(get_students_from_csv(csvfile))
153 153
154 if args.admin: 154 if args.admin:
155 - print('Adding user: 0, admin.') 155 + print('Adding user: 0, Admin.')
156 students.append({'uid': '0', 'name': 'Admin'}) 156 students.append({'uid': '0', 'name': 'Admin'})
157 157
158 if args.add: 158 if args.add: