Thanks, Ian,
I appreciate your advice and have removed the first conditional (if name
not in duties).
Have now changed that to:
duty = Duty(date=date)
duties[date] = duty
if name not in volunteers:
volunteer = Volunteer(fore=fore, surn=surn, name=name)
Calum,
On 01/13/2012 01:31 PM, Calum MacLeod wrote:
Thanks, Ian,
I appreciate your advice and have removed the first conditional (if
name not in duties).
Have now changed that to:
duty = Duty(date=date)
duties[date] = duty
if name not in volunteers:
volunteer = Volunteer
I am relatively new both to python and to sqlalchemy. I am a hobbiest,
trying to learn this for fun. Have been using a Sunday tea rota as a
simple project by which to learn the rudiments of sqla. The rota
consists of 16 people and the number of days on which tea is offered
amounts to 47.