-
Notifications
You must be signed in to change notification settings - Fork 8
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
Prepare for historical data #49
Conversation
ca3bf6b
to
6fa9461
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.
This looks really great. Glad we finally got this out there.
@@ -1,10 +1,10 @@ | |||
{% for field in metadata.fields %} | |||
{% set value = record.get(field.FieldName) %} | |||
{% set value = record.get(field.FieldName) | string %} |
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.
Oh, smart.
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.
Yea I was having trouble with the if not boolean
so I just opted for this lol
def _augment_with_salary(record: Record) -> str: | ||
last = record["last_name"] | ||
first = record["first_name"] | ||
@lru_cache(maxsize=1000) |
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.
Glad we have this, it's slow as hell otherwise.
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.
Lol and it's a one line change too! After moving it out into something that's cached easily
This PR adds two small changes to prepare for OrcaCollective/spd-lookup#23: