Changeset 1619
- Timestamp:
- 06/11/08 11:51:16 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hive/trunk/data_webapp/app/controllers/hc_database_controller.rb
r1617 r1619 140 140 hid = client.host_id 141 141 142 bee_work = {"cid" => client.cid, "urls" => []}142 #bee_work = {"cid" => client.cid, "urls" => []} 143 143 144 144 # Insert all visited and timed out URLs into the history. … … 159 159 # Prevent duplication of history items due to possible flawed logic on (RPC) client side. 160 160 if not HistoryUrl.exists?(url_obj) 161 bee_work["urls"] << url_obj161 #bee_work["urls"] << url_obj 162 162 163 163 # Insert the HistoryUrl and retrieve the corresponding inserted object. … … 203 203 204 204 # Stores data for Job 205 BeeJob.add_job("history_urls",bee_work)205 #BeeJob.add_job("history_urls",bee_work) 206 206 207 207 # Return the number of URLs that were successfully inserted into the history. … … 214 214 215 215 # I need to make a deep copy of the Hash so not to alter it 216 job_copy = Marshal.dump(obj_hash)216 #job_copy = Marshal.dump(obj_hash) 217 217 218 218 # Remove compromise time from fingerprint and use to update related client object … … 222 222 223 223 # Stores data for Job 224 BeeJob.add_job("fingerprint",Marshal.load(job_copy),client.cid)224 #BeeJob.add_job("fingerprint",Marshal.load(job_copy),client.cid) 225 225 226 226 insert(Fingerprint,obj_hash) … … 231 231 232 232 # This needs to be BEFORE the insert 233 BeeJob.add_job("client",obj_hash)233 #BeeJob.add_job("client",obj_hash) 234 234 235 235 insert(Client,obj_hash) … … 240 240 241 241 # This needs to be BEFORE the insert 242 BeeJob.add_job("host",obj_hash)242 #BeeJob.add_job("host",obj_hash) 243 243 244 244 insert(Host,obj_hash)
