Nattyboi commited on
Commit
3f9dda2
·
1 Parent(s): c3676db

removed the returning levels

Browse files
Files changed (1) hide show
  1. gamification/levelLogic.py +2 -1
gamification/levelLogic.py CHANGED
@@ -50,8 +50,9 @@ def get_all_levels_func() -> List[UserLevel]:
50
 
51
  # Convert the cursor to a list of UserLevel objects
52
  levels = [UserLevel(**level) for level in levels_cursor]
 
53
 
54
- return levels
55
 
56
 
57
 
 
50
 
51
  # Convert the cursor to a list of UserLevel objects
52
  levels = [UserLevel(**level) for level in levels_cursor]
53
+ returning_levels= [returns for returns in levels if (returns.levelName!="default" and returns.careerPath!="default")]
54
 
55
+ return returning_levels
56
 
57
 
58