Skip to content

Conversation

@mbillow
Copy link
Member

Add a page where user's can report their co-op block. This then properly updates voting counts and attendance for house meeting.

Fixes#80

screen shot 2017-05-24 at 01 43 12

padding-left: 10px;
}

.radio-inlineinput[type='radio'], .radioinput[type='radio'], input[type='radio']{
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not how this should be selected. It also makes the linter unhappy.

I will figure this out later. (or if someone wants to fix it, I am also fine with that)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed 👍

logger=structlog.get_logger()

@co_op_bp.route('/co_op/')
defdisplay_conditionals():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change name

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally didn't copy and paste that... 😜 haha



@co_op_bp.route('/co_op/submit', methods=['POST'])
defsubmit_major_project():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change name

@mbillowmbillowforce-pushed the co-op branch 2 times, most recently from 6faf36d to 3028102CompareMay 24, 2017 05:57
voting_list= [uidforuidin [member.uidformemberinldap_get_active_members()]
ifuidnotin [member.uidformemberinldap_get_intro_members()]]
ifuidnotin [member.uidformemberinldap_get_intro_members()] and
uidnotin [member.uidformemberinCurrentCoops.query.filter(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be a good place for us to use a filter and a lambda function.

Something where we get the relevant lists before and then just do a quick comparator seems more elegant.

db.session.commit()

returnjsonify({"success": True}), 200

No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF!

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github is reporting no newline at the end of the file.

Copy link
MemberAuthor

@mbillowmbillowMay 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 55 looks a lot like a newline to me. Also it passed that portion of the linter.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because you have trailing whitespace there. So it's not just a '\n'

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The amount of effort I just put into convincing my IDE that there was whitespace there was a little asinine. Should be all good now.

<inputtype="submit" role="button" class="btn btn-raised btn-primary" style="width:100%;" value="Submit Form"/>
</form>
{% else %}
<pclass="align-center">Thanks for submitting this form. Good luck on your{{on_coop.semester}} co-op!</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plans change; we should allow people to change their co-op report (up to a certain cutoff perhaps? would be a simple date comparison)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with changing it up to a certain point. What I was trying to avoid with this was people having the ability to go on hour long "co-ops" during house meetings.

I will spend some time (probably later today) fleshing out the best way to do this. If you have ideas, feel free to pass them on.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yep, that's definitely a valid concern. In that case we could define self-service windows that would only allow changes outside of when school is in session.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more that I think about it, the more I am in favor of keeping it like it is. We can add a table to member management for listing who is on co-op and the evals director can just clear it if a mistake was made.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added better language to point those whose need to change their submission towards the Evals Director.

CurrentCoops.date_created>start_of_year(),
CurrentCoops.semester==semester).all())

voting_list=list(active_members-intro_members-on_coop)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh I didn't realize you could do that with lists in python, weird.

@mbillow
Copy link
MemberAuthor

screen capture on 2017-05-27 at 22-15-16
Co-op submissions can now be deleted by the evals director. @stevenmirabito I think this should take care of any plans that might change or accidents.

Copy link
Member

@liam-middlebrookliam-middlebrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mbillowmbillow merged commit 894cb9e into ComputerScienceHouse:developMay 28, 2017
@mbillowmbillow deleted the co-op branch May 28, 2017 05:29
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mbillow@stevenmirabito@liam-middlebrook