lib.sqlalchemy.update_domain_name_scan_completed_op - python examples

Here are the examples of the python api lib.sqlalchemy.update_domain_name_scan_completed_op taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

0 View Complete Implementation : dns.py
Copyright GNU General Public License v3.0
Author : lavalamp-
@websight_app.task(bind=True, base=DomainNameTask)
def update_domain_name_scan_completed(
        self,
        org_uuid=None,
        domain_scan_uuid=None,
        domain_uuid=None,
        order_uuid=None,
):
    """
    Update the referenced domain name scan to reflect that the scan has completed.
    :param org_uuid: The UUID of the organization that owns the domain name.
    :param domain_scan_uuid: The UUID of the domain name scan to update.
    :param domain_uuid: The UUID of the domain name that was scanned.
    :return: None
    """
    logger.info(
        "Now updating domain name scan %s to show that scan has completed. Organization is %s."
        % (domain_scan_uuid, org_uuid)
    )
    update_domain_name_scan_completed_op(scan_uuid=domain_scan_uuid, db_session=self.db_session)
    self.commit_session()
    logger.info(
        "Domain name scan %s updated to show it has completed."
        % (domain_scan_uuid,)
    )