mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix encoding error in sql lab logging (#3424)
This commit is contained in:
committed by
Maxime Beauchemin
parent
31b7b9a6a0
commit
ad604aed09
@@ -1,3 +1,5 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from time import sleep
|
||||
from datetime import datetime
|
||||
import json
|
||||
@@ -34,8 +36,8 @@ def dedup(l, suffix='__'):
|
||||
Always returns the same number of entries as provided, and always returns
|
||||
unique values.
|
||||
|
||||
>>> dedup(['foo', 'bar', 'bar', 'bar'])
|
||||
['foo', 'bar', 'bar__1', 'bar__2']
|
||||
>>> print(','.join(dedup(['foo', 'bar', 'bar', 'bar'])))
|
||||
foo,bar,bar__1,bar__2
|
||||
"""
|
||||
new_l = []
|
||||
seen = {}
|
||||
|
||||
Reference in New Issue
Block a user