Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: filters/unique_value_length.py

Issue 29347257: Issue 3997 - Wrong information about employees on Eyeo.com (Closed)
Patch Set: Created July 2, 2016, 6:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | includes/jobs/why.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filters/unique_value_length.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/filters/unique_value_length.py
@@ -0,0 +1,3 @@
+
+def unique_value_length(list, property):
+ return len({item[property] for item in list})
« no previous file with comments | « no previous file | includes/jobs/why.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld