Restore deleted Contribution List

Hello,
User deleted the “Contribution List” of conference by mistake.
The contribution PDF files are not deleted and exist in the following sub directory.
/opt/indico/archive/event/32/contribution

Is there any way to restore the “Contribution List” ?

sawa Kato

what exactly did you delete? the contributions?

Thank you for your reply. It looks like this now.

I asked the user. He said he deleted all contributions.

Is there any way to recover it ?

If you want to restore contributions inside a single event, something like this should work (assuming you have access to indico shell):

contribs = Contribution.query.filter_by(event_id=32)
for c in contribs:
    c.is_deleted = False
db.session.commit()

Thank you for your advice. I am not used to python command, so I will create a replica server and try the above command.

I could recover the contribution lists with the command you suggested.
Thank you very much !.
But when the contribution lists were deleted by mistake, the entries of timetable were also lost for this event. I could not recover the timetable with this commands.
I would appreciate if there is a way to recover the timetable entries.

you can’t, you’ll have to recreate them

I see. Thank you for your advice.