mirror of
https://github.com/MCMi460/3DS-RPC.git
synced 2025-06-18 13:35:34 -04:00
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:
parent
9514740fc9
commit
4c1d0db359
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user