Skip to content
Extraits de code Groupes Projets
Valider 2f4be3c9 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Revert "keep nil nil"

This reverts commit fb12f5de.
parent fb12f5de
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -86,7 +86,7 @@ module DataConversion
def comments_json_to_csv model_hash
generic_json_to_csv(model_hash) do |hash|
model_hash[:mongo_attrs].map { |attr_name|
if attr_name == "youtube_titles" && hash[attr_name]
if attr_name == "youtube_titles"
hash[attr_name].to_yaml
else
hash[attr_name]
......@@ -162,7 +162,7 @@ module DataConversion
def posts_json_to_csv model_hash
generic_json_to_csv(model_hash) do |hash|
model_hash[:mongo_attrs].map { |attr_name|
if attr_name == "youtube_titles" && hash[attr_name]
if attr_name == "youtube_titles"
hash[attr_name].to_yaml
else
hash[attr_name]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter