Closed iperdomo closed 4 years ago
As @ichinaski suggests in https://github.com/akvo/akvo-flow/issues/652 if we find an image, we just need to upload it, no re-sizing is needed.
Some idea for detecting duplicate lines
(defn get-data [f]
(let [zf (ZipFile. f)
entry (.getEntry zf "data.txt")]
(if entry
(line-seq (io/reader (.getInputStream zf entry)))
"")))
(reduce conj #{} (mapcat get-data (fs/find-files "/path/to/folder" #".*\.zip$")))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The current bulk upload relies on the applet code. The process is straight forward and can be re-implemented in Clojure.
surveyal.zip
data.txt
, we need to skip processing the zip files nameswfpGenerated*.zip
data.txt
, check if that survey instance exists in the datastore by making a Remote API call (NOTE: this is a new step, not present in the old process)