# script to clear undelete a list of releases
This script will set the deletion status to N in the releases table in art_relations. This is adapted from [undelete-projects](https://github.com/theorchard/distro-scripts/tree/master/undelete-projects)
### Installation
```
python3 -m venv env
```
```
source env/bin/activate
```
```
pip install -r requirements.txt
```
```
cp .env.shadow .env
```

### Running the script
run the script by running following command providing the list of release ids as given below:
```
python undelete_releases.py 12345 54321
```

### Steps for execution
1. Rename the .env.shadow to .env
2. Update the art_relations database credentials in .env file
3. Run the script python undelete_releases.py release_id1 release_id2...
