mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
refactor exporting interfaces
This commit is contained in:
parent
65dfd6c540
commit
9815decc99
1 changed files with 3 additions and 3 deletions
|
|
@ -593,8 +593,8 @@ class ReticulumMeshChat:
|
|||
async def export_interfaces(request):
|
||||
try:
|
||||
output = []
|
||||
for name, interface in self.reticulum.config["interfaces"].items():
|
||||
output.append(f"[[{name}]]")
|
||||
for interface_name, interface in self.reticulum.config["interfaces"].items():
|
||||
output.append(f"[[{interface_name}]]")
|
||||
for key, value in interface.items():
|
||||
output.append(f" {key} = {value}")
|
||||
output.append("")
|
||||
|
|
@ -603,7 +603,7 @@ class ReticulumMeshChat:
|
|||
text="\n".join(output),
|
||||
content_type="text/plain",
|
||||
headers={
|
||||
"Content-Disposition": "attachment; filename=reticulum_interfaces"
|
||||
"Content-Disposition": "attachment; filename=meshchat_interfaces"
|
||||
}
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue