Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Make preliminary UX changes. #517

Merged
merged 20 commits into from
Mar 27, 2017
Merged

Make preliminary UX changes. #517

merged 20 commits into from
Mar 27, 2017

Conversation

rjacobs31
Copy link
Contributor

No description provided.

@@ -1,4 +1,5 @@
from __future__ import division
from __future__ import division
Copy link
Collaborator

Choose a reason for hiding this comment

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

double import?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops. Thanks for catching.

@@ -118,7 +127,7 @@ def get():
state['fname'] = ""
state['sname'] = ""
state['comment'] = ""
state['contact'] = ""
state['contact'] = "" if not usr or not usr.mobile else usr.mobile
Copy link
Collaborator

Choose a reason for hiding this comment

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

erm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's similar to a ternary operator in Java. This variable isn't allowed to be None, so the code is just replacing it with an empty string if the object or the field are None.

@msinovcic
Copy link
Collaborator

👍

@rjacobs31 rjacobs31 merged commit 272b725 into develop Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants