mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Return main domain directly, not its index
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
This commit is contained in:
parent
1ff3c1cd07
commit
6bd5655830
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def domain_list(exclude_subdomains=False):
|
|||
result_list.sort()
|
||||
return {
|
||||
'domains': result_list,
|
||||
'default': result_list.index(_get_maindomain())
|
||||
'default': _get_maindomain()
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue