Skip to content

Commit 286c9f8

Browse files
committed
Avoid var shadowing.
1 parent 40e2492 commit 286c9f8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎usr/lib/python3/dist-packages/linuxmusterCli/typers/students.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def reset_internet(
2323

2424
if schoolclass:
2525
students = [student
26-
for student in lr.get('/rawroles/student', school=school, asdict=False)
26+
for student in lr.get('/rawroles/student', school=school, as_dict=False)
2727
if student.sophomorixAdminClass in schoolclass]
2828
else:
29-
students = lr.get('/rawroles/student', school=school, asdict=False)
29+
students = lr.get('/rawroles/student', school=school, as_dict=False)
3030

3131
internet_group = LMNMgmtGroup('internet')
3232

‎usr/lib/python3/dist-packages/linuxmusterCli/typers/user.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ def ls(
2828
user = user.lower()
2929

3030
if school is not None:
31-
kwargs = {"school": school, 'asdict': False}
31+
kwargs = {"school": school, 'as_dict': False}
3232
else:
33-
kwargs = {'asdict': False}
33+
kwargs = {'as_dict': False}
3434

3535
if user.endswith("-exam"):
3636
user_obj = lr.get(f'/users/exam/{user}', **kwargs)
3737
else:
3838
user_obj = lr.get(f'/users/{user}', **kwargs)
3939

40-
user_data = user_obj.asdict()
40+
user_data = user_obj.as_dict()
4141

4242
if check_first_password:
4343
if user_obj.test_first_password():

0 commit comments

Comments
 (0)