Redefine friend_code as string

The constant back-and-forth of friend codes between strings and integers should be cleaned up in the future.
This commit is contained in:
Spotlight 2024-09-23 02:55:47 -05:00
parent 9514740fc9
commit 4c1d0db359
No known key found for this signature in database
GPG Key ID: 874AA355B3209BDC

View File

@ -296,6 +296,7 @@ def get_presence(friend_code: int, network: NetworkType, is_api: bool):
if network_start_time is None and not disableBackendWarnings:
raise Exception('Backend currently offline. please try again later')
friend_code = str(friend_code).zfill(12)
principal_id = friend_code_to_principal_id(friend_code)
stmt = (
select(Friend)