4b94172a2981051ef546dcd477d8abc484451676,jarbas/core/management/commands/receipturls.py,Command,handle,#Command#,19

Before Change


            "errors": list()
        }

        fields = ("pk", "applicant_id", "year", "document_id")
        documents = Document.objects.only(*fields).iterator()

        with Pool(processes=options["processes"]) as pool:
            for url, updated, error in pool.imap(update_url, documents):
                self.update_progress(url, updated, error)
                print(self.summary(), end="\r")

After Change


        )

    def handle(self, *args, **options):
        print("==> Looking for documents to update")
        limit = now() - timedelta(days=options["days"])
        qs = Document.objects.filter(receipt_url_last_update__lt=limit)
        total = qs.count()
        self.progress = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 4b94172a2981051ef546dcd477d8abc484451676
Time: 2016-09-23
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/receipturls.py
Class Name: Command
Method Name: handle


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 67fa4171fffad014ef7f072ef56426e52080fcb5
Time: 2016-11-10
Author: cuducos@gmail.com
File Name: src/fetch_suspicious_places.py
Class Name:
Method Name: search_suspicious_around_companies


Project Name: aertslab/pySCENIC
Commit Name: 5b824f9124e8690ce35118cb2ab8ecfe61fad8cc
Time: 2018-02-06
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/regulome.py
Class Name:
Method Name: derive_regulomes