sviddo commited on
Commit
a1f8134
1 Parent(s): a18ebc5

update function of getting next level

Browse files
Files changed (1) hide show
  1. scripts/quiz/utils.py +3 -3
scripts/quiz/utils.py CHANGED
@@ -1,13 +1,13 @@
1
  from typing import Literal
2
 
3
- def get_next_level(current_level, levep_up: Literal[True, False] = True):
4
  if levep_up:
5
- if current_level == "easy":
6
  return "medium"
7
  else:
8
  return "hard"
9
  else:
10
- if current_level == "medium":
11
  return "easy"
12
  else:
13
  return "medium"
 
1
  from typing import Literal
2
 
3
+ def get_next_level(cur_level, levep_up: Literal[True, False] = True):
4
  if levep_up:
5
+ if cur_level == "easy":
6
  return "medium"
7
  else:
8
  return "hard"
9
  else:
10
+ if cur_level == "medium":
11
  return "easy"
12
  else:
13
  return "medium"