-
Notifications
You must be signed in to change notification settings - Fork 31
Member Submission of Attendance #116
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
Conversation
f7da300
to
d4d0bb3
Compare
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.
I'll test this stuff out for realisies later, but so far here's what I have from a quick skim over of the code.
return "must be eboard", 403 | ||
|
||
approved = ldap_is_eboard(account) | ||
print(str(approved) + "IS AN EBAORD MEMBER") |
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.
EVAULATIONS
@@ -383,7 +371,7 @@ def alter_house_excuse(uid, hid): | |||
def attendance_history(): | |||
|
|||
|
|||
def get_meeting_attendees(meeting_id): | |||
def get_comm_attendees(meeting_id): |
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.
we should really change this to use the term directorship eventually
@@ -395,6 +383,18 @@ def get_meeting_attendees(meeting_id): | |||
FreshmanAccount.id == freshman).first().name) | |||
return attendees | |||
|
|||
def get_sem_attendees(meeting_id): |
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.
I really don't think we need to abbreviate function names
@@ -459,12 +476,87 @@ def alter_committee_attendance(cid): | |||
db.session.commit() | |||
return jsonify({"success": True}), 200 | |||
|
|||
@attendance_bp.route('/attendance/cm/<cid>', methods=['GET', 'DELETE']) | |||
|
|||
@attendance_bp.route('/attendance/alter/ts/<cid>', methods=['POST']) |
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.
cid only made sense when this was referring to committee meetings
@@ -58,7 +58,8 @@ def display_dashboard(): | |||
c_meetings = [m.meeting_id for m in | |||
MemberCommitteeAttendance.query.filter( | |||
MemberCommitteeAttendance.uid == member.uid | |||
)] | |||
) if CommitteeMeeting.query.filter( |
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.
we have a bunch of oddities for SQL queries, but I think we could do a fancy statement with a single query.
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.
I am not sure the sacrifice in readability is worth the four or five milliseconds you would save on load time. I looked back at the query I wrote for the housing queue and had to turn my monitor upside just trying to remember why I did what I did.
d4d0bb3
to
6ca77df
Compare
6ca77df
to
2028a8c
Compare
@@ -4,6 +4,60 @@ | |||
{% endblock %} | |||
{% block body %} | |||
<div class="container main"> | |||
{% if pending_cm|length != 0 and current_page == 1 %} | |||
<h3 class="page-title">Pending Submittions</h3> |
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.
Submissions.
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | ||
<h4 class="modal-title" id="editMeetingTitle">Review Submittion</h4> |
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.
Submission.
@csssuf I code good... but spell good is hard. |
Has anyone had a chance to test this? |
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.
LGTM
* Fix Eboard Check and Frsmn Migration * Add Approved Field and Migration Titles * Committee Meeting Submtn and Review * Technical Seminar Atnd Smbtn * Spelling is hard. * Display Seminars on History Page
* Member Submission of Attendance (#116) * Fix Eboard Check and Frsmn Migration * Add Approved Field and Migration Titles * Committee Meeting Submtn and Review * Technical Seminar Atnd Smbtn * Spelling is hard. * Display Seminars on History Page * removed initial attendance submission warning (#118) * Fix Dashboard for those with no housing info
Fixes #107
Allows members to submit attendance for Committee Meetings and Seminars. This attendance is then added to a queue for Eboard Approval.