Skip to content

Instantly share code, notes, and snippets.

View kmkr's full-sized avatar
🌄
Gathering sunrays

Kris-Mikael Krister kmkr

🌄
Gathering sunrays
View GitHub Profile
@kmkr
kmkr / surfaces.py
Created January 16, 2023 12:03
Surface code (refactoring)
def get_surfaces(address: Address) -> list[dict]:
response = _make_request(
settings.SURFACES_SERVICE_URL,
cadastral_unit_id=address.cadastral_unit_id,
cadastral_address_id=address.cadastral_address_id,
)
if 'application/json' in response.headers.get('Content-Type'):
data = response.json()
response_status = data.get('ResponseStatus', {})

Keybase proof

I hereby claim:

  • I am kmkr on github.
  • I am kmkr (https://keybase.io/kmkr) on keybase.
  • I have a public key whose fingerprint is B97A 9D1A FD18 8831 2557 610F 66DD 0675 9BCA 6E26

To claim this, I am signing this object: