Skip to content

Commit

Permalink
Remove redundant date conversion in queryPathChanged and add the alar…
Browse files Browse the repository at this point in the history
…ms to the relevant category in getSubcategories
  • Loading branch information
petya-vasileva committed Dec 11, 2024
1 parent 73a97e5 commit 2557e75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/model/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ def queryThroughputIdx(dateFrom, dateTo):
return aggrs

def queryPathChanged(dateFrom, dateTo):
dateFrom = hp.convertDate(dateFrom)
dateTo = hp.convertDate(dateTo)
# if (end - start).days < 2:
# dateFrom, dateTo = hp.getPriorNhPeriod(dateTo)

Expand Down Expand Up @@ -353,7 +351,8 @@ def getSubcategories():
description = {
'Infrastructure': ['bad owd measurements','large clock correction',
'destination cannot be reached from multiple', 'destination cannot be reached from any',
'source cannot reach any', 'firewall issue', 'complete packet loss'],
'source cannot reach any', 'firewall issue', 'complete packet loss',
'unresolvable host', 'hosts not found'],

'Network': ['bandwidth decreased from/to multiple sites', 'path changed between sites'],

Expand Down

0 comments on commit 2557e75

Please sign in to comment.