On Jul 23, 2018, at 19:00, Peter Claes <[email protected]> wrote:

> I have asked this a while ago, if it would be possible to create date
> based schedule codes.
> 
> I know you can add dates in the cut info, but then they are still
> sheduled, but marked in red.
> 
> So I was wondering i someone could help me out with a bash script.
> 
> The idea would be that we code music by week numbers : week01 upto week52


Why not use a different set of of scheduler codes for each particular set of 
weeks?


> What I would like to achieve is a bash that:
> - clears the thisweek code from the DB
> - calculates the weeknumber with an offset (because we schedule 10
> days ahead) with overflow for 53 and 54 being 1 and 2
> - then adds the thisweek code to all the carts carrying the weekxx
> code (xx being the calculated week number)
> 
> I would like to run this as a cronjob on a monday morning :)
> 
> Would this be do-able ?

It would be very brittle going forward. The likelihood of schema changes 
breaking it would be quite high. Something like this really needs to be part of 
the base RD code.

Cheers!


|----------------------------------------------------------------------|
| Frederick F. Gleason, Jr. |              Chief Developer             |
|                           |              Paravel Systems             |
|----------------------------------------------------------------------|
|          A room without books is like a body without a soul.         |
|                                         -- Cicero                    |
|----------------------------------------------------------------------|
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to