Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove __manual_scan checks that were mistakenly added #21

Merged
merged 1 commit into from
Jun 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cyhy/db/ticket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ def __check_false_positive_expiration(self, ticket, closing_time):
"reference": None,
"delta": [{"from": True, "to": False, "key": "false_positive"}],
}
if self.__manual_scan:
event["manual"] = True
ticket["events"].append(event)

def __handle_ticket_port_closed(self, ticket, closing_time):
Expand All @@ -390,8 +388,6 @@ def __handle_ticket_port_closed(self, ticket, closing_time):
"reason": reason,
"reference": None,
}
if self.__manual_scan:
event["manual"] = True
ticket["events"].append(event)
ticket.save()

Expand Down Expand Up @@ -492,8 +488,6 @@ def __check_false_positive_expiration(self, ticket, closing_time):
"reference": None,
"delta": [{"from": True, "to": False, "key": "false_positive"}],
}
if self.__manual_scan:
event["manual"] = True
ticket["events"].append(event)

def close_tickets(self, closing_time=None):
Expand Down Expand Up @@ -529,8 +523,6 @@ def close_tickets(self, closing_time=None):
"reason": reason,
"reference": None,
}
if self.__manual_scan:
event["manual"] = True
ticket["events"].append(event)
ticket.save()

Expand Down