Commit adb48fef authored by LiniEisha's avatar LiniEisha

Integrate

parent dd665bb8
...@@ -122,7 +122,6 @@ class LectureSummaryList(APIView): ...@@ -122,7 +122,6 @@ class LectureSummaryList(APIView):
lecture_summary_name = request.query_params.get("lecture_summary_name") lecture_summary_name = request.query_params.get("lecture_summary_name")
id = int(request.query_params.get("id")) id = int(request.query_params.get("id"))
current_date = datetime.datetime.now().date()
# generate new id for summary # generate new id for summary
lecture_summary_id = "LSUM0001" if lecture_summary_list is None else generate_new_id(lecture_summary_list.lecture_audio_summary_id) lecture_summary_id = "LSUM0001" if lecture_summary_list is None else generate_new_id(lecture_summary_list.lecture_audio_summary_id)
......
...@@ -86,7 +86,8 @@ ...@@ -86,7 +86,8 @@
$('.to_summary').click(function(e) { $('.to_summary').click(function(e) {
alert('Processing'); alert('Processing');
let id = e.target.parentNode.parentNode.getAttribute('id'); let id = e.target.parentNode.parentNode.getAttribute('id');
let lecture_summary_name = e.target.parentNode.parentNode.getAttribute('data-summary-name'); <!-- let lecture_summary_name = e.target.parentNode.parentNode.getAttribute('data-summary-name');-->
let lecture_summary_name = e.target.parentNode.parentNode.getAttribute('data-notice-name');
<!-- lecture_summary_name = lecture_summary_name + ".txt";--> <!-- lecture_summary_name = lecture_summary_name + ".txt";-->
lecture_summary_name = lecture_summary_name + ".wav.txt"; lecture_summary_name = lecture_summary_name + ".wav.txt";
alert('id: ' + id); alert('id: ' + id);
...@@ -310,7 +311,7 @@ ...@@ -310,7 +311,7 @@
<tbody> <tbody>
{% for lec_text in lecture_text_data %} {% for lec_text in lecture_text_data %}
<tr class="recordings not_clicked" id="{{ lec_text.lecture_audio_id.id }}" data-summary-name="{{lec_text.lecture_audio_id.lecture_audio_name}}"> <tr class="recordings not_clicked" id="{{ lec_text.lecture_audio_id.id }}" data-summary-name="{{lec_text.lecture_audio_id.lecture_audio_name}}" data-notice-name="{{lec_text.lecture_audio_id}}" >
<!-- <td>--> <!-- <td>-->
<!-- <div class="radio">--> <!-- <div class="radio">-->
<!-- <label><input type="radio"--> <!-- <label><input type="radio"-->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment