Skip to content

Commit

Permalink
Update queries.py
Browse files Browse the repository at this point in the history
  • Loading branch information
petya-vasileva authored Jan 26, 2025
1 parent 8c22381 commit 17fc0d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/model/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ def queryPathChanged(dateFrom, dateTo):
data = []

for item in result:
temp = item['_source'].copy()
if 'src_site' in temp.keys() and 'dest_site' in temp.keys():
temp['tag'] = [temp['src_site'], temp['dest_site']]
temp['from'] = temp['from_date']
temp['to'] = temp['to_date']
del temp['from_date']
del temp['to_date']
data.append(temp)
temp = item['_source'].copy()
if 'src_site' in temp.keys() and 'dest_site' in temp.keys():
temp['tag'] = [temp['src_site'], temp['dest_site']]
temp['from'] = temp['from_date']
temp['to'] = temp['to_date']
del temp['from_date']
del temp['to_date']
data.append(temp)

return data

Expand Down

0 comments on commit 17fc0d9

Please sign in to comment.