Skip to content

Conversation

@aagbsn
Copy link
Contributor

@aagbsn aagbsn commented Nov 4, 2025

this includes a small refactor to make the probe_geoip method re-usable

this includes a small refactor to make the probe_geoip method re-usable
@aagbsn aagbsn force-pushed the add_geolookup_to_ooniapi branch from 825c702 to ba41ff3 Compare November 7, 2025 14:30
for ipaddr in data.addresses:
# call probe_geoip() and map the keys to the geolookup v1 API
resp, _, _ = probe_geoip(ipaddr, probe_cc, asn, cc_reader, asn_reader)
# it doesn't seem possible to have separate aliases for (de)serialization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the alias parameter in Field help in any way?
https://docs.pydantic.dev/latest/concepts/fields/#field-aliases

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.

2 participants