-
Notifications
You must be signed in to change notification settings - Fork 0
Proctoring script #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Proctoring script #280
Conversation
date Дата сессии | ||
start Время начала сессии | ||
end Время окончания сессии |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давайте сделаем два параметра типа datetime - start и finish
continue | ||
event_description = event["element_type"] + " " + event["event_type"] + ":" | ||
time_code = str(event_time - start) | ||
link = "https://proctoring.moevm.info/teach/" + parser.id + '?webTime=' + time_code + '&screenTime=' + time_code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Домен прокторинга нужно вынести в константу
parser.add_argument("end", help="Время окончания сессии") | ||
|
||
args = parser.parse_args() | ||
args.name = args.name.replace("_", " ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cтоит указать в месте добавления аргумента "name", что он required=True
, иначе кто-то не задаст и будет неочевидное падение. Также и по поводу других аргументов, может им также стоит прописать required
?
No description provided.