fix important bug where wikis with both ancients and non-ancients don't record non...
authorgroceryheist <nathante@uw.edu>
Tue, 25 Jul 2017 16:31:06 +0000 (11:31 -0500)
committergroceryheist <nathante@uw.edu>
Tue, 25 Jul 2017 16:31:06 +0000 (11:31 -0500)
R/wikia_admin.R

index 00e067c..10b7b1f 100644 (file)
@@ -58,7 +58,7 @@ generate.admin.addrm <- function (logevents, current.admins) {
   }
 
   # if there are log events, and there are non-ancients, we parse them
-  if (dim(logevents)[1] & !any(logevents$ancient)) {
+  if (dim(logevents)[1] & !all(logevents$ancient)) {
     moderns.parsed <- do.call("rbind",
                               lapply(1:dim(moderns)[1], parse.moderns, moderns))
   } else {

Community Data Science Collective || Want to submit a patch?