Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Handle PHP backend databases without full datasets better
Browse files Browse the repository at this point in the history
Many thanks to Andreas Voss for uncovering this issue!
  • Loading branch information
FelixHenninger committed Apr 6, 2020
1 parent fff8dfd commit 3869435
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Dilek Akkus ·
[Nikoletta Symeonidou](https://www.sowi.uni-mannheim.de/en/erdfelder/team/academic-staff-members/symeonidou-nikoletta/) ·
[Hendrik Singmann](http://singmann.org) ·
[Kevin Tiede](https://www.spds.uni-konstanz.de/kevin-tiede) ·
[Andreas Voss](https://www.psychologie.uni-heidelberg.de/ae/meth/) ·
[Andrew White](https://github.com/shiroandy) ·
[Malte Zimdahl](http://psycho3.uni-mannheim.de/Personen/Malte%20Zimdahl,%20M.Sc./)

Expand Down
5 changes: 5 additions & 0 deletions utilities/SQLite import app/server.r
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ processData <- function(database) {
) %>%
ungroup() %>%
select(-id) -> d.full
} else {
# If there are no full datasets, start from an entirely empty df
# in order to avoid introducing unwanted columns into the following
# merge steps.
d.full <- tibble()
}

d %>%
Expand Down
5 changes: 5 additions & 0 deletions utilities/SQLite import.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ if (nrow(d.full) > 0) {
) %>%
ungroup() %>%
select(-id) -> d.full
} else {
# If there are no full datasets, start from an entirely empty df
# in order to avoid introducing unwanted columns into the following
# merge steps.
d.full <- tibble()
}
```

Expand Down

0 comments on commit 3869435

Please sign in to comment.