Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueli924 authored Nov 14, 2023
1 parent 56a4e58 commit 0bbf8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def init_config():
config.get("common", "course_list"),
int(config.get("common", "speed")))
else:
return (args.username, args.password, args.list.split(","), int(args.speed))
return (args.username, args.password, args.list.split(",") if args.list else None, int(args.speed) if args.speed else 1)


if __name__ == '__main__':
Expand Down

0 comments on commit 0bbf8c2

Please sign in to comment.