Closed lamontfr closed 6 years ago
Couldn't have said it better myself!
I finished coding the solution. I will now document usage.
@JeanFrancoisFournier @kousu I submitted the PR to be reviewed by Ling or Ernesto. I will wait a few days for their comments.
$ python3 manage.py setordersdelivered YYYY-mm-dd
$ python3 manage.py setordersdelivered 2017-12-09
This is related to #795 too, adding more work for #795.
It would be a lot easier to deploy this reliably if the date had a default, so that it's calculated internally instead of in shell where quoting rules are a nightmare to get right. You could use datetime.date.today() - datetime.timedelta(1)
@kousu @JeanFrancoisFournier I do not calculate the delivery date inside the command for one reason : I suspect that there is a date / timezone problem somewhere in Django / Docker (see Issue #820). Therefore, specifying the date explicitly on the command line makes it safer for the time being,
Expected Behaviour
Actual Behaviour
Proposed solution