Update app/proton/proton_callback_handler.py
Co-authored-by: Adrià Casajús <acasajus@users.noreply.github.com>
This commit is contained in:
parent
ed9d2ed816
commit
0064729ca7
|
@ -25,10 +25,10 @@ def get_proton_partner() -> Partner:
|
||||||
|
|
||||||
|
|
||||||
def get_proton_partner_id() -> int:
|
def get_proton_partner_id() -> int:
|
||||||
global _PROTON_PARTNER_ID
|
global _PROTON_PARTNER
|
||||||
if _PROTON_PARTNER_ID is None:
|
if _PROTON_PARTNER is None:
|
||||||
partner = get_proton_partner()
|
get_proton_partner()
|
||||||
_PROTON_PARTNER_ID = partner.id
|
return _PROTON_PARTNER.id
|
||||||
|
|
||||||
return _PROTON_PARTNER_ID
|
return _PROTON_PARTNER_ID
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue