1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-09 23:33:47 +03:00

Fix type() method calls to getType() in code to avoid clashes with "type" builtin

This commit is contained in:
Adolfo Gómez García
2023-12-04 00:41:41 +01:00
parent 193c3fb544
commit 74ff4c17cd
13 changed files with 22 additions and 20 deletions

View File

@@ -265,7 +265,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods
offers = [
{
'name': _(t.name()),
'type': t.type(),
'type': t.getType(),
'description': _(t.description()),
'icon': t.icon64().replace('\n', ''),
}
@@ -273,11 +273,11 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods
]
else:
for t in parent.getType().getProvidedServices():
if forType == t.type():
if forType == t.getType():
offers = [
{
'name': _(t.name()),
'type': t.type(),
'type': t.getType(),
'description': _(t.description()),
'icon': t.icon64().replace('\n', ''),
}