Skip to content

Commit

Permalink
PR merge updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas2499 committed Mar 4, 2024
1 parent b88ffb0 commit 04da29e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions healthScore/templates/view_history.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ <h4>Filter Your Health History</h4>
</thead>
<tbody>
{% for record, details in zipped_details %}
<tr>
<td>{{ record.appointment_name }}</td>
<tr onclick="getProperties(`{{ forloop.counter }}|{{ record.appointment_properties }}|{{record.appointment_name}}`)" data-toggle="modal" data-target="#myModal">
<td class="appointmentName">{{ record.appointment_name }}</td>
<td>{{ record.appointment_type }}</td>
<td>{{ record.doctor_name }}</td>
<td>{{ record.hospital_name }}</td>
Expand Down
3 changes: 2 additions & 1 deletion healthScore/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_default_values(request):
def view_health_history(request):
if request.method == "GET":
# Filtering to just userID=5 to simulate it being a users view.
history_list = healthRecord.objects.filter(userID=5)
history_list = healthRecord.objects.filter(userID=2)

appointment_name = request.GET.get("appointment_name")
if appointment_name:
Expand Down Expand Up @@ -115,6 +115,7 @@ def view_health_history(request):
"updatedAt": datetime.date(h.updatedAt),
"appointment_name": appointment_name,
"appointment_type": appointment_type,
"appointment_properties": json.dumps(appointment_properties),
}
)

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ tzdata==2024.1
urllib3==1.26.18
virtualenv==20.24.6
wcwidth==0.1.9

reportlab~=4.1.0

0 comments on commit 04da29e

Please sign in to comment.