Skip to content

Commit

Permalink
Update dashboard.html and views.py to improve timeline button styling…
Browse files Browse the repository at this point in the history
… and functionality
  • Loading branch information
QA2A committed Aug 15, 2024
1 parent d04801f commit ade98fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion website/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@
<a href="?date={{ day.date|date:'Y-m-d' }}" class="timeline-button {% if request.GET.date == day.date|date:'Y-m-d' %}active-day{% endif %}">
<strong>{{ day.date|date:"m/d" }}</strong>
<br>
A: {{ day.count }}
<span style="font-size: 20px;">
{{ day.count }}
</span>
</a>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def get_queryset(self):
parsed_date = datetime.strptime(selected_date, "%Y-%m-%d")
if is_naive(parsed_date):
parsed_date = make_aware(parsed_date)
applications = applications.filter(date_applied__date=parsed_date.date())
applications = applications.filter(date_applied__date=parsed_date.date()).order_by("-date_applied")
except ValueError:
pass

Expand Down

0 comments on commit ade98fd

Please sign in to comment.