Do not call getDataByFilter multiple times.

This was introduced erroneously in manual merge.
Merge pull request #41 from marcjansen/double-work

Do not call getDataByFilter multiple times.