Changeset 1519
- Timestamp:
- 04/16/08 13:06:28 (4 weeks ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hive/trunk/data_webapp/app/controllers/hc_database_controller.rb
r1501 r1519 80 80 hid = client.host_id 81 81 82 # Get source information83 stype = obj_hash.delete("source_type") or "unknown"84 sname = obj_hash.delete("source_name")82 #XXX: Get source information 83 #stype = obj_hash.delete("source_type") or "unknown" 84 #sname = obj_hash.delete("source_name") 85 85 86 86 bee_work = {"cid" => client.cid, "urls" => []} … … 93 93 # Build URL history item and insert. 94 94 obj_hash[l].each do |u,t| 95 95 96 url_obj = { 96 97 "url" => u, … … 98 99 "status" => l.gsub("links_",""), 99 100 "client_id" => cid, 100 "source_type" => stype,101 "source_name" => sname,102 101 } 102 q = QueueUrl.find(:first,:conditions => {:url => u}) 103 if not q.nil? 104 url_obj["source_type"] = (q.source_type or "unknown") 105 url_obj["source_name"] = q.source_name 106 end 103 107 104 108 # Prevent duplication of history items due to
