mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 08:29:14 +00:00
reroute system provider query
This commit is contained in:
parent
589093b853
commit
a723311b36
|
@ -133,7 +133,11 @@ class SystemProviderInfo:
|
|||
|
||||
def get_system_provider_info() -> SystemProviderInfo:
|
||||
"""Get system provider info"""
|
||||
return SystemProviderInfo(provider=ServerProvider.HETZNER, id="UNKNOWN")
|
||||
with ReadUserData() as user_data:
|
||||
return SystemProviderInfo(
|
||||
provider=user_data["server"]["provider"],
|
||||
id="UNKNOWN"
|
||||
)
|
||||
|
||||
|
||||
@strawberry.type
|
||||
|
|
Loading…
Reference in a new issue