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

Unified Diff: filters/countries_length.py

Issue 29347257: Issue 3997 - Wrong information about employees on Eyeo.com (Closed)
Patch Set: Changed approach to check against non_countries list instead of hard coded non_countries inside cou… Created Oct. 10, 2016, 8:25 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/countries_length.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/filters/countries_length.py
@@ -0,0 +1,5 @@
+
+non_countries = ["earth"];
+
+def countries_length(people):
+ return len(({flag for _, flag, _, _, _, _ in people if flag not in non_countries}))
« 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