Skip to content

biomeAppWebUsage: use Context form#1633

Merged
abrignoni merged 1 commit into
mainfrom
biome-appwebusage-context
Jul 1, 2026
Merged

biomeAppWebUsage: use Context form#1633
abrignoni merged 1 commit into
mainfrom
biome-appwebusage-context

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Small cleanup: biomeAppWebUsage.py was the only biome artifact still on the legacy 5-parameter signature — the other 22 all use the Context form. This brings it in line.

Change (2 lines)

  • def get_biomeAppWebUsage(files_found, _report_folder, _seeker, _wrap_text, _timezone_offset):def get_biomeAppWebUsage(context):
  • for file_found in files_found:for file_found in context.get_files_found():

No behavior change

The artifact already stored UTC (webkit_timestampsconv, no timezone conversion) and already used properly typed ('...', 'datetime') headers, so nothing else needed to change. Field mappings, typess, the Written/Deleted handling, and author attribution are untouched.

Validation

  • py_compile clean
  • PluginLoader registers it as Biome - App Web Usage; .__wrapped__ signature is now (context)

Bring the one remaining biome artifact onto the Context signature used by
the other 22 (def get_biomeAppWebUsage(context) + context.get_files_found()).
No behavior change: it already stored UTC and used typed datetime headers.
@abrignoni abrignoni merged commit b8a46aa into main Jul 1, 2026
1 check failed
@abrignoni abrignoni deleted the biome-appwebusage-context branch July 1, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant