Commit 9de5f81c authored by Patrick's avatar Patrick
Browse files

cron job to open orders

parent b85d0bc8
# -*- coding: utf-8 -*-
from import BaseCommand, CommandError
from repanier.task import task_order
class Command(BaseCommand):
args = '<none>'
help = 'Open pre opened orders'
def handle(self, *args, **options):
something_to_open = task_order.automatically_open()
if something_to_open:
self.stdout.write('At least one order being opened')
self.stdout.write('Nothing to open')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment