parent
b68750caeb
commit
5b5df8bf32
2 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ def get_stages_and_events(filter_d: schemas.CardSeriesFilterSchema, project_id)
|
|||
if len(f.value) > 0 and f.value[0] is not None:
|
||||
first_stage_extra_constraints.append(f's.duration >= %(minDuration)s')
|
||||
values["minDuration"] = f.value[0]
|
||||
if len(f["value"]) > 1 and f.value[1] is not None and int(f.value[1]) > 0:
|
||||
if len(f.value) > 1 and f.value[1] is not None and int(f.value[1]) > 0:
|
||||
first_stage_extra_constraints.append('s.duration <= %(maxDuration)s')
|
||||
values["maxDuration"] = f.value[1]
|
||||
elif filter_type == schemas.FilterType.referrer:
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class CurrentContext(schemas.CurrentContext):
|
|||
if values.get("permissions") is not None:
|
||||
perms = []
|
||||
for p in values["permissions"]:
|
||||
if Permissions.has_value(p):
|
||||
if Permissions.has_value(p) or ServicePermissions.has_value(p):
|
||||
perms.append(p)
|
||||
values["permissions"] = perms
|
||||
return values
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue