__database__.addProfile(profilename, starttime)
// Crate two fake tw
__database__.addNewTW(profilename, "timewindow1", starttime, self.width)
__database__.addNewTW(profilename, "timewindow2", time.mktime(datetime.strptime("2015-07-26T10:12:53.784566", "%Y-%m-%dT%H:%M:%S.%f").timetuple()), self.width)
// 2. Get all previous info inside this profile, such as the width of the time window, etc.
profileJSON = __database__.getProfileData(profilename)
After Change
self.outputqueue.put("5|profiler|Received flow")
// Get data
saddr = columns["saddr"]
daddr = columns["daddr"]
profileid = "profile:" + str(saddr)
starttime = time.mktime(columns["starttime"].timetuple())
// The steps for adding a flow in a profile should be