1 2 3 4 5
@Log("Updating description of", "Updated description of") @IfNotDryRun @Cursor def update_description(self, cur, description): cur.execute("UPDATE components SET description = %s WHERE id = %s", (description, self.id))