def resolve_screenshot(request, productionlink_id, archive_member_id): production_link = ProductionLink.objects.get(id=productionlink_id) archive_member = ArchiveMember.objects.get(id=archive_member_id) if request.POST: production_link.file_for_screenshot = archive_member.filename production_link.is_unresolved_for_screenshotting = False production_link.save() create_screenshot_from_production_link.delay(productionlink_id) return HttpResponse('OK', mimetype='text/plain')
def resolve_screenshot(request, productionlink_id, archive_member_id): production_link = ProductionLink.objects.get(id=productionlink_id) archive_member = ArchiveMember.objects.get(id=archive_member_id) if request.POST: production_link.file_for_screenshot = archive_member.filename production_link.is_unresolved_for_screenshotting = False production_link.save() create_screenshot_from_production_link.delay(productionlink_id) return HttpResponse('OK', mimetype='text/plain')
def handle(self, *args, **kwargs): for prod_link in find_screenshottable_graphics(): print("prod %s: download from %s" % (prod_link.production_id, prod_link.download_url)) create_screenshot_from_production_link.delay(prod_link.id)
def handle_noargs(self, **options): for prod_link in find_screenshottable_graphics(): print "prod %s: download from %s" % (prod_link.production_id, prod_link.download_url) create_screenshot_from_production_link.delay(prod_link.id)
def handle_noargs(self, **options): for prod_link in find_zipped_screenshottable_graphics(): print "prod %s: download from %s" % (prod_link.production_id, prod_link.download_url) create_screenshot_from_production_link.delay(prod_link.id)