|
|
|
@ -16,6 +16,7 @@ from courses.models import Course |
|
|
|
from finance.models import Price |
|
|
|
from finance.models import Price |
|
|
|
from journals.models import TeacherJ, check_journal |
|
|
|
from journals.models import TeacherJ, check_journal |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_course_journal(course_id): |
|
|
|
def check_course_journal(course_id): |
|
|
|
print('===========\nКурс: %s\n==============\n' % Course.objects.get(id=course_id).title) |
|
|
|
print('===========\nКурс: %s\n==============\n' % Course.objects.get(id=course_id).title) |
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +58,7 @@ def check_course_journal(course_id): |
|
|
|
global_finish = datetime.now() |
|
|
|
global_finish = datetime.now() |
|
|
|
print('==============================\nДлительность: %s сек' % (global_finish - global_start).seconds) |
|
|
|
print('==============================\nДлительность: %s сек' % (global_finish - global_start).seconds) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
if __name__ == "__main__": |
|
|
|
course_id = sys.argv[1] |
|
|
|
course_id = sys.argv[1] |
|
|
|
check_course_journal(course_id) |
|
|
|
check_course_journal(course_id) |
|
|
|
|
|
|
|
|
|
|
|
|