This commit is contained in:
aaron 2025-03-24 20:00:17 +08:00
parent 3ad1286379
commit 34b7ecfcf1
2 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ async def get_addresses(
AddressDB AddressDB
).filter( ).filter(
AddressDB.user_id == current_user.userid AddressDB.user_id == current_user.userid
) )
if address_type: if address_type:
addresses.filter(AddressDB.address_type == address_type) addresses = addresses.filter(AddressDB.address_type == address_type)
if community_id is not None: if community_id is not None:
addresses = addresses.filter(AddressDB.community_id == community_id) addresses = addresses.filter(AddressDB.community_id == community_id)

Binary file not shown.