Эх сурвалжийг харах

HUE-7420 [jb] Remove white space from impala title

jdesjean 8 жил өмнө
parent
commit
97177b1

+ 1 - 1
apps/jobbrowser/src/jobbrowser/apis/query_api.py

@@ -59,7 +59,7 @@ class QueryApi(Api):
     return {
       'apps': sorted([{
         'id': job['query_id'],
-        'name': job['stmt'][:100] + ('...' if len(job['stmt']) > 100 else ''),
+        'name': job['stmt'].replace('\r\n', ' ')[:60] + ('...' if len(job['stmt']) > 60 else ''),
         'status': job['state'],
         'apiStatus': self._api_status(job['state']),
         'type': job['stmt_type'],