Issue 554 - rank formats *before* serializing them.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2482 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-03-16 20:21:57 +00:00
parent b3f8ce83c1
commit 8d22ede1f8

View File

@ -139,8 +139,8 @@ public class ImportingUtilities {
bestFormat = ImportingUtilities.guessBetterFormat(job, bestFormat); bestFormat = ImportingUtilities.guessBetterFormat(job, bestFormat);
JSONArray rankedFormats = new JSONArray(); JSONArray rankedFormats = new JSONArray();
JSONUtilities.safePut(config, "rankedFormats", rankedFormats);
ImportingUtilities.rankFormats(job, bestFormat, rankedFormats); ImportingUtilities.rankFormats(job, bestFormat, rankedFormats);
JSONUtilities.safePut(config, "rankedFormats", rankedFormats);
JSONUtilities.safePut(config, "state", "ready"); JSONUtilities.safePut(config, "state", "ready");
JSONUtilities.safePut(config, "hasData", true); JSONUtilities.safePut(config, "hasData", true);