def get_timestamp(self, ts_type, model_type):
    ts_collection = self._get_incident_timestamp_collection()
    ts = ts_collection.find_one({'type': ts_type, 'model': model_type})
    if ts:
        return ts['timestamp']
    return ts
def get_timestamp(self, ts_type, model_type):
    ts_collection = self._get_incident_timestamp_collection()
    ts = ts_collection.find_one({'type': ts_type, 'model': model_type})
    if ts:
        return ts['timestamp']
    return ts