From 8945c8b2772c9bf2d5fd82650b10f106ec76a47f Mon Sep 17 00:00:00 2001 From: Valerij Maljulin Date: Nov 19 2019 14:10:17 +0000 Subject: Tests fix Signed-off-by: Valerij Maljulin --- diff --git a/greenwave/utils.py b/greenwave/utils.py index c979a5d..00ee7ad 100644 --- a/greenwave/utils.py +++ b/greenwave/utils.py @@ -147,7 +147,7 @@ def remove_duplicates(func): def wrapper(*args, **kwargs): rv = func(*args, **kwargs) if isinstance(rv, list) and len(rv): - rv = list(set(rv)) + rv = list(dict.fromkeys(rv)) return rv return wrapper