Skip to content

Conversation

graysonarts
Copy link
Contributor

More readable by extracting a couple of methods and reorganizing the code a little.

return FieldDictionary({k: v for k, v in column_objects})
column_field_objects = self._get_column_objects()
existing_column_fields = [x.id for x in column_field_objects]
metadata_field_objects = (x for x in self._get_metadata_objects() if x.id not in existing_column_fields)
Copy link
Contributor

Choose a reason for hiding this comment

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

metadata_only_field_objects -- or some hint that we have to find these a different way

@t8y8
Copy link
Contributor

t8y8 commented Jul 21, 2016

How do I make the rocket emoji? (rocket)

@graysonarts
Copy link
Contributor Author

:rocket: I'll rename the variable to metadata_only_field_objects

@t8y8
Copy link
Contributor

t8y8 commented Jul 21, 2016

🚀

@graysonarts graysonarts merged commit f8206b9 into tableau:development Jul 21, 2016
@graysonarts graysonarts deleted the code-cleanup branch July 26, 2016 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants