Skip to content

Commit 17fc0d9

Browse files
Update queries.py
1 parent 8c22381 commit 17fc0d9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/model/queries.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ def queryPathChanged(dateFrom, dateTo):
182182
data = []
183183

184184
for item in result:
185-
temp = item['_source'].copy()
186-
if 'src_site' in temp.keys() and 'dest_site' in temp.keys():
187-
temp['tag'] = [temp['src_site'], temp['dest_site']]
188-
temp['from'] = temp['from_date']
189-
temp['to'] = temp['to_date']
190-
del temp['from_date']
191-
del temp['to_date']
192-
data.append(temp)
185+
temp = item['_source'].copy()
186+
if 'src_site' in temp.keys() and 'dest_site' in temp.keys():
187+
temp['tag'] = [temp['src_site'], temp['dest_site']]
188+
temp['from'] = temp['from_date']
189+
temp['to'] = temp['to_date']
190+
del temp['from_date']
191+
del temp['to_date']
192+
data.append(temp)
193193

194194
return data
195195

0 commit comments

Comments
 (0)