Skip to content
Snippets Groups Projects
Commit e246e8ee authored by Raman's avatar Raman
Browse files

EUR-916: Device Accounts should be created one per file instead of one per device

Address Codacy comments in previous commit
parent 57f1a17b
No related branches found
No related tags found
No related merge requests found
......@@ -86,9 +86,6 @@ def fromType(t):
def analyze(self, dataSource, fileManager, context):
try:
absFiles = fileManager.findFiles(dataSource, "logs.db")
absFiles.addAll(fileManager.findFiles(dataSource, "contacts.db"))
absFiles.addAll(fileManager.findFiles(dataSource, "contacts2.db"))
......
......@@ -84,7 +84,7 @@ def __findTangoMessagesInDB(self, databasePath, abstractFile, dataSource):
self._logger.log(Level.SEVERE, traceback.format_exc())
return
# Create a 'Device' account using the data source device id
# Create a 'Device' account using the data source device id
datasourceObjId = dataSource.getDataSource().getId()
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
deviceID = ds.getDeviceId()
......
......@@ -60,8 +60,6 @@ def __init__(self):
def analyze(self, dataSource, fileManager, context):
try:
absFiles = fileManager.findFiles(dataSource, "mmssms.db")
for abstractFile in absFiles:
try:
......
......@@ -88,7 +88,7 @@ def __findWWFMessagesInDB(self, databasePath, abstractFile, dataSource):
self._logger.log(Level.SEVERE, traceback.format_exc())
return
# Create a 'Device' account using the data source device id
# Create a 'Device' account using the data source device id
datasourceObjId = dataSource.getDataSource().getId()
ds = Case.getCurrentCase().getSleuthkitCase().getDataSource(datasourceObjId)
deviceID = ds.getDeviceId()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment