Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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
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.

None yet

2 participants