Skip to content
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

loop L#34-L#41 of generate.php gives inconsistent csv table #1

Open
githubertus opened this issue Oct 26, 2016 · 1 comment
Open

loop L#34-L#41 of generate.php gives inconsistent csv table #1

githubertus opened this issue Oct 26, 2016 · 1 comment

Comments

@githubertus
Copy link
Contributor

githubertus commented Oct 26, 2016

because the subtype and number of entities per user may vary.
(e.g. some have 'language' entity, others not)
I'm not that much an array wizzard to leave an intelligent patch at once here, but basically it has to be changed like that:

  1. read all rows into temporary array
  2. collect all available (subtype) array keys
  3. build up new array including all of these keys and build header row
  4. merge records of step 1 into array of step 3
  5. write to file
@githubertus
Copy link
Contributor Author

fixed with pull request

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

No branches or pull requests

1 participant