-
Notifications
You must be signed in to change notification settings - Fork 197
Maite modules batch 3 #1302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Maite modules batch 3 #1302
Conversation
Updated the artifact to use context. Removed unused code, deprecated timezone offset handling
Replaces direct plist parsing and deserialization with the get_plist_file_content. Removes unused imports
|
|
||
| data_list.append( | ||
| (fire_date, | ||
| None, # alarm time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch on this data misalignment. i am not super familiar with this artifact, is the 'MTSleepAlarm' condition never having a time? did you find any examples to validate in test data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just put None in there to fix the alignment. I thought about getting the hour and minute to build the time string, but I have no idea what the internal structure for that artifact looks like and didn't want to assume those fields exist. I couldn't find any test data.
Added checks to ensure that parsed plist files are valid dictionaries before accessing their contents.
Added checks to ensure plist files are valid and dictionaries before processing
Bug Fix in appleAlarms.py:
Fixed data alignment issue by adding None placeholder in alarm time column for sleep alarms when no alarm time was present.
Standardization Across Multiple Modules:
Updated function signatures: Changed to use context parameter
plist processing in appItunesmeta.py: Replaced direct plist library calls with get_plist_file_content() function