diff options
author | CruiseDevice | 2019-07-03 17:31:38 +0530 |
---|---|---|
committer | CruiseDevice | 2019-07-03 17:32:55 +0530 |
commit | 745426ecc20bba58fd3721a960057ad8d41e3b99 (patch) | |
tree | ea74521ca77df859493cfcc1bd60f493dfab7311 /yaksh/models.py | |
parent | dbe52125fd83370dea94ac9c8d870f572f0a14a7 (diff) | |
download | online_test-745426ecc20bba58fd3721a960057ad8d41e3b99.tar.gz online_test-745426ecc20bba58fd3721a960057ad8d41e3b99.tar.bz2 online_test-745426ecc20bba58fd3721a960057ad8d41e3b99.zip |
Minor changes
- Remove commented code.
- Add active class to the tab selected on sidebar.
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 24cb996..2ae6f45 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -575,16 +575,6 @@ class Quiz(models.Model): sub_folder_name = os.sep.join(( course_name, module_name, quiz_name )) - # lesson_files = self.get_files() - # if self.video_file: - # video_file = os.sep.join((sub_folder_name, os.path.basename( - # self.video_file.name))) - # zip_file.writestr(video_file, self.video_file.read()) - # for lesson_file in lesson_files: - # if os.path.exists(lesson_file.file.path): - # filename = os.sep.join((sub_folder_name, os.path.basename( - # lesson_file.file.name))) - # zip_file.writestr(filename, lesson_file.file.read()) unit_file_path = os.sep.join(( path, "templates", "yaksh", "quiz.html" )) |