Skip to content
Snippets Groups Projects
Commit 17c54156 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[reports][models] Fix key search in dictionaries

parent 4ee2126d
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -301,11 +301,11 @@ class Report(models.Model):
report_content = json.loads(self.content)
if not report_content.has_key("alias_experiments"):
if "alias_experiments" not in report_content:
report_content["alias_experiments"] = {}
for experiment in self.experiments.iterator():
if not report_content["alias_experiments"].has_key(experiment.fullname()):
if experiment.fullname() not in report_content["alias_experiments"]:
report_content["alias_experiments"][experiment.fullname()] = experiment.name
try:
index = alias_filter.index(report_content["alias_experiments"][experiment.fullname()])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment