ALEAPP context-form migration — batch 5: bulk N–Z (104 files) by abrignoni · Pull Request #967 · abrignoni/ALEAPP · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/artifacts/NikeAMoments.py
4 changes: 2 additions & 2 deletions scripts/artifacts/NikeActivities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_nike_activities": {
"name": "Nike - Activities",
Expand Down Expand Up @@ -58,7 +57,8 @@ def _q(cursor, sql, params):


@artifact_processor
def get_nike_activities(files_found, report_folder, seeker, wrap_text):
def get_nike_activities(context):
files_found = context.get_files_found()
source_path = _db(files_found)
data_list = []
if source_path:
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/NikeNotifications.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_nike_notifications": {
"name": "NikeNotifications",
Expand All @@ -24,7 +23,8 @@


@artifact_processor
def get_nike_notifications(files_found, report_folder, seeker, wrap_text):
def get_nike_notifications(context):
files_found = context.get_files_found()

files_found = [x for x in files_found if not str(x).endswith('-journal')]
source_path = str(files_found[0])
Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/NikePolyline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W0718
# pylint: disable=W0718
__artifacts_v2__ = {
"get_nike_polyline": {
"name": "Nike - Activity Route",
Expand Down Expand Up @@ -47,7 +47,8 @@ def _db(files_found):


@artifact_processor
def get_nike_polyline(files_found, report_folder, seeker, wrap_text):
def get_nike_polyline(context):
files_found = context.get_files_found()
source_path = _db(files_found)
data_list = []
if source_path:
Expand Down
7 changes: 4 additions & 3 deletions scripts/artifacts/Oruxmaps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_Oruxmaps": {
"name": "Oruxmaps - POI",
Expand Down Expand Up @@ -40,7 +39,8 @@ def _ms_to_utc(value):


@artifact_processor
def get_Oruxmaps(files_found, report_folder, seeker, wrap_text):
def get_Oruxmaps(context):
files_found = context.get_files_found()
source_path = str(files_found[0])
db = open_sqlite_db_readonly(source_path)
cursor = db.cursor()
Expand All @@ -57,7 +57,8 @@ def get_Oruxmaps(files_found, report_folder, seeker, wrap_text):


@artifact_processor
def get_Oruxmaps_tracks(files_found, report_folder, seeker, wrap_text):
def get_Oruxmaps_tracks(context):
files_found = context.get_files_found()
source_path = str(files_found[0])
db = open_sqlite_db_readonly(source_path)
cursor = db.cursor()
Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/PodcastAddict.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W0718
# pylint: disable=W0718
__artifacts_v2__ = {
"get_podcasts": {
"name": "Podcast Addict",
Expand All @@ -19,7 +19,8 @@


@artifact_processor
def get_podcasts(files_found, report_folder, seeker, wrap_text):
def get_podcasts(context):
files_found = context.get_files_found()
data_list = []
source_path = ''

Expand Down
7 changes: 4 additions & 3 deletions scripts/artifacts/ProtonDrive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"protondrive_useraccount": {
"name": "Proton Drive - User Account",
Expand Down Expand Up @@ -33,7 +32,8 @@
from scripts.ilapfuncs import artifact_processor, get_sqlite_db_records

@artifact_processor
def protondrive_useraccount(files_found, report_folder, seeker, wrap_text):
def protondrive_useraccount(context):
files_found = context.get_files_found()
data_list = []

def is_sqlite_db(path):
Expand Down Expand Up @@ -85,7 +85,8 @@ def is_sqlite_db(path):
return data_headers, data_list, source_path

@artifact_processor
def protondrive_fileinfo(files_found, report_folder, seeker, wrap_text):
def protondrive_fileinfo(context):
files_found = context.get_files_found()

data_list = []

Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/PumaActivities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W0718
# pylint: disable=W0718
__artifacts_v2__ = {
"get_puma_activities": {
"name": "Puma - Activities",
Expand Down Expand Up @@ -64,7 +64,8 @@ def _route_media(source, coords, title, subtitle, base):


@artifact_processor
def get_puma_activities(files_found, report_folder, seeker, wrap_text):
def get_puma_activities(context):
files_found = context.get_files_found()
source_path = _db(files_found)
data_list = []
if source_path:
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/PumaUsers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_puma_users": {
"name": "PumaUsers",
Expand All @@ -23,7 +22,8 @@


@artifact_processor
def get_puma_users(files_found, report_folder, seeker, wrap_text):
def get_puma_users(context):
files_found = context.get_files_found()

files_found = [x for x in files_found if not str(x).endswith('wal') and not str(x).endswith('shm')]
source_path = str(files_found[0])
Expand Down
9 changes: 6 additions & 3 deletions scripts/artifacts/RandoChat.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
from scripts.ilapfuncs import artifact_processor, convert_unix_ts_to_utc, get_sqlite_db_records, check_in_media

@artifact_processor
def randochat_messages(files_found, _report_folder, _seeker, _wrap_text):
def randochat_messages(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]


Expand Down Expand Up @@ -131,7 +132,8 @@ def randochat_messages(files_found, _report_folder, _seeker, _wrap_text):


@artifact_processor
def randochat_account(files_found, _report_folder, _seeker, _wrap_text):
def randochat_account(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]


Expand Down Expand Up @@ -189,7 +191,8 @@ def randochat_account(files_found, _report_folder, _seeker, _wrap_text):


@artifact_processor
def randochat_contacts(files_found, _report_folder, _seeker, _wrap_text):
def randochat_contacts(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]
main_db = ''

Expand Down
9 changes: 6 additions & 3 deletions scripts/artifacts/RomeoDatingApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
from scripts.ilapfuncs import artifact_processor, convert_unix_ts_to_utc, get_sqlite_db_records

@artifact_processor
def romeo_dating_messages(files_found, _report_folder, _seeker, _wrap_text):
def romeo_dating_messages(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]

main_db = ''
Expand Down Expand Up @@ -135,7 +136,8 @@ def romeo_dating_messages(files_found, _report_folder, _seeker, _wrap_text):


@artifact_processor
def romeo_dating_contacts(files_found, _report_folder, _seeker, _wrap_text):
def romeo_dating_contacts(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]


Expand Down Expand Up @@ -233,7 +235,8 @@ def romeo_dating_contacts(files_found, _report_folder, _seeker, _wrap_text):


@artifact_processor
def romeo_dating_accounts(files_found, _report_folder, _seeker, _wrap_text):
def romeo_dating_accounts(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]
main_db = ''

Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/RunkeeperActivities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W0718
# pylint: disable=W0718
__artifacts_v2__ = {
"get_run_activities": {
"name": "Runkeeper - Activities",
Expand Down Expand Up @@ -64,7 +64,8 @@ def _route_media(source, coords, title, subtitle, base):


@artifact_processor
def get_run_activities(files_found, report_folder, seeker, wrap_text):
def get_run_activities(context):
files_found = context.get_files_found()
source_path = _db(files_found)
data_list = []
if source_path:
Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/RunkeeperUser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W1309
# pylint: disable=W1309
__artifacts_v2__ = {
"get_run_user": {
"name": "RunkeeperUser",
Expand Down Expand Up @@ -47,7 +47,8 @@ def _s_to_utc(value):


@artifact_processor
def get_run_user(files_found, report_folder, seeker, wrap_text):
def get_run_user(context):
files_found = context.get_files_found()
# Dictionary to store the user information
user_info = {}
# Attributes to be extracted from the xml file
Expand Down
12 changes: 8 additions & 4 deletions scripts/artifacts/SamsungDeviceHealthManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
from scripts.ilapfuncs import artifact_processor, convert_unix_ts_to_utc, get_sqlite_db_records

@artifact_processor
def sdhms_config_reloads(files_found, _report_folder, _seeker, _wrap_text):
def sdhms_config_reloads(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]

query = ('''
Expand Down Expand Up @@ -124,7 +125,8 @@ def sdhms_config_reloads(files_found, _report_folder, _seeker, _wrap_text):
return data_headers, data_list, files_found[0]

@artifact_processor
def sdhms_netstat(files_found, _report_folder, _seeker, _wrap_text):
def sdhms_netstat(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]

query = ('''
Expand Down Expand Up @@ -164,7 +166,8 @@ def sdhms_netstat(files_found, _report_folder, _seeker, _wrap_text):
return data_headers, data_list, files_found[0]

@artifact_processor
def sdhms_temperature(files_found, _report_folder, _seeker, _wrap_text):
def sdhms_temperature(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]

query = ('''
Expand Down Expand Up @@ -218,7 +221,8 @@ def sdhms_temperature(files_found, _report_folder, _seeker, _wrap_text):
return data_headers, data_list, files_found[0]

@artifact_processor
def sdhms_cpustats(files_found, _report_folder, _seeker, _wrap_text):
def sdhms_cpustats(context):
files_found = context.get_files_found()
files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')]

query = ('''
Expand Down
3 changes: 2 additions & 1 deletion scripts/artifacts/SamsungNotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
from scripts.ilapfuncs import artifact_processor, convert_unix_ts_to_utc, get_sqlite_db_records, check_in_media

@artifact_processor
def snotes(files_found, _report_folder, _seeker, _wrap_text):
def snotes(context):
files_found = context.get_files_found()

main_db = ''
medias = []
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/SimpleStorage_applaunch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"SimpleStorage_applaunch": {
"name": "SimpleStorage - App Launch",
Expand Down Expand Up @@ -26,7 +25,8 @@
from scripts.context import Context

@artifact_processor
def SimpleStorage_applaunch(files_found, report_folder, seeker, wrap_text):
def SimpleStorage_applaunch(context):
files_found = context.get_files_found()
data_list = []

source_path = get_file_path(files_found, "SimpleStorage")
Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/StravaGPS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=W0613,W0718
# pylint: disable=W0718
__artifacts_v2__ = {
"get_gps": {
"name": "Strava - Activities",
Expand Down Expand Up @@ -35,7 +35,8 @@ def _to_utc(value):


@artifact_processor
def get_gps(files_found, report_folder, seeker, wrap_text):
def get_gps(context):
files_found = context.get_files_found()
data_list = []
source_path = ''
for file_found in files_found:
Expand Down
10 changes: 6 additions & 4 deletions scripts/artifacts/Todoist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_Todoist": {
"name": "Todoist - Items",
Expand Down Expand Up @@ -79,7 +78,8 @@ def _run(source_path, sql):


@artifact_processor
def get_Todoist(files_found, report_folder, seeker, wrap_text):
def get_Todoist(context):
files_found = context.get_files_found()
source_path = _todoist_db(files_found)
rows = _run(source_path, '''
SELECT items.date_added, items.added_by_uid, items.content, items.description, items.due_date,
Expand All @@ -100,7 +100,8 @@ def get_Todoist(files_found, report_folder, seeker, wrap_text):


@artifact_processor
def get_Todoist_notes(files_found, report_folder, seeker, wrap_text):
def get_Todoist_notes(context):
files_found = context.get_files_found()
source_path = _todoist_db(files_found)
rows = _run(source_path, '''
SELECT notes.posted, notes.content, note_file_attachments.resource_type,
Expand All @@ -118,7 +119,8 @@ def get_Todoist_notes(files_found, report_folder, seeker, wrap_text):


@artifact_processor
def get_Todoist_projects(files_found, report_folder, seeker, wrap_text):
def get_Todoist_projects(context):
files_found = context.get_files_found()
source_path = _todoist_db(files_found)
rows = _run(source_path, '''
SELECT name, color, view_style, child_order,
Expand Down
4 changes: 2 additions & 2 deletions scripts/artifacts/Twitter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0613
__artifacts_v2__ = {
"get_Twitter": {
"name": "twitter",
Expand Down Expand Up @@ -26,7 +25,8 @@


@artifact_processor
def get_Twitter(files_found, report_folder, seeker, wrap_text):
def get_Twitter(context):
files_found = context.get_files_found()
source_path = ''
for file_found in files_found:
file_found = str(file_found)
Expand Down
5 changes: 3 additions & 2 deletions scripts/artifacts/VerizonRDDAnalytics.py
Loading
Loading