scraperwiki / spreadsheet-upload-tool

A ScraperWiki tool for uploading structured data from a CSV or Excel spreadsheet
3 stars 5 forks source link

csv upload is broken #2

Open drj11 opened 11 years ago

drj11 commented 11 years ago

I think the attempted type conversion is going wrong. This diff might help:

diff --git a/code/extract.py b/code/extract.py
index 336b1ce..0256deb 100755
--- a/code/extract.py
+++ b/code/extract.py
@@ -83,9 +83,8 @@ def convertField(string):
         try:
             return test(string)
         except ValueError:
-            continue
-        else:
-            return string
+            pass
+    return string

(or it might not, since i patched it together).

pwaller commented 10 years ago

Ping!