Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 3d414f9

Browse files
authored
Merge pull request #2043 from bjones1/rsmanage-fix
Rsmanage fixes
2 parents bbfbc5a + 337feda commit 3d414f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rsmanage/rsmanage.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,8 @@ def build(config, clone, ptx, gen, manifest, course):
409409

410410

411411
#
412-
# inituser
412+
# adduser
413413
#
414-
415-
416414
@cli.command()
417415
@click.option("--instructor", is_flag=True, help="Make this user an instructor")
418416
@click.option(
@@ -460,7 +458,7 @@ def adduser(
460458
for line in csv.reader(fromfile):
461459
if len(line) != 6:
462460
click.echo("Not enough data to create a user. Lines must be")
463-
click.echo("username, email first_name, last_name, password, course")
461+
click.echo("username, email, first_name, last_name, password, course")
464462
exit(1)
465463
if "@" not in line[1]:
466464
click.echo("emails should have an @ in them in column 2")
@@ -834,10 +832,8 @@ def studentinfo(config, student):
834832
from auth_user join user_courses ON user_courses.user_id = auth_user.id
835833
join courses on courses.id = user_courses.course_id where username = '{student}'"""
836834
)
837-
print(f"res = {res}")
838835
# fetchone fetches the first row without closing the cursor.
839836
first = res.fetchone()
840-
print(student)
841837
print("id\tFirst\tLast\temail")
842838
print("\t".join(str(x) for x in first[:4]))
843839
print("")

0 commit comments

Comments
 (0)