-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add page for evals with packets opened in the past semester #350
base: develop
Are you sure you want to change the base?
Conversation
7641db3
to
54e90d1
Compare
54e90d1
to
9006bb2
Compare
@before_request | ||
@log_time | ||
def admin_past_packets(info=None): | ||
open_packets = Packet.opened_after(datetime.date.today() - datetime.timedelta(days=(30 * 4))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30*4? does conditional do any awareness of what the current semester is that we could throw a rough start date here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or is this intended to be "recent"?
future: wonder if evals would like a date selector
@@ -26,7 +26,8 @@ | |||
</a> | |||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> | |||
<a class="dropdown-item" href="{{ url_for("admin_freshmen") }}">Freshmen</a> | |||
<a class="dropdown-item" href="{{ url_for("admin_packets") }}">Packets</a> | |||
<a class="dropdown-item" href="{{ url_for("admin_packets") }}">Active Packets</a> | |||
<a class="dropdown-item" href="{{ url_for("admin_past_packets") }}">Past Packets</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should this be Recent Packets
?
No description provided.