Skip to content

Conversation

galenguyer
Copy link
Member

No description provided.

@before_request
@log_time
def admin_past_packets(info=None):
open_packets = Packet.opened_after(datetime.date.today() - datetime.timedelta(days=(30 * 4)))
Copy link
Collaborator

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?

Copy link
Collaborator

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>
Copy link
Collaborator

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?

@galenguyer galenguyer added the hacktoberfest-accepted Approved Hacktoberfest contributions label Oct 9, 2022
@devinmatte devinmatte removed their request for review July 9, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Approved Hacktoberfest contributions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants