1
__name__ = "Update state of requests and participations"
4
for old, new in [('confirmed', 'accepted'), ('undermined', 'refused'), ('pending', 'requested')]:
5
cr.execute('UPDATE training_participation_stakeholder_request SET state=%s WHERE state=%s', (new, old))
7
for old, new in [('confirmed', 'accepted'), ('undermined', 'refused'), ('requested', 'draft')]:
8
cr.execute('UPDATE training_participation_stakeholder SET state=%s WHERE state=%s', (new, old))