Added new edit_status.py instructions

This commit is contained in:
spla 2020-06-29 10:25:11 +02:00
pare 5ecd4137d8
commit 06f712fffd
S'han modificat 2 arxius amb 13 adicions i 11 eliminacions

Veure arxiu

@ -17,14 +17,16 @@ Run mailing.py periodically to catch 'new' inactive users and update the elapsed
Within Python Virtual Environment:
1. Run 'db-setup.py' to set database parameters and create needed database and table. All collected data of inactive users (see point 3) will be written there.
1. Run `python db-setup.py` to set database parameters and create needed database and table. All collected data of inactive users (see point 3) will be written there.
2. Run 'setup.py' to set your SMTP parameters and desired email subject. Also set your Mastodon's full path. They will be saved to 'secrets/secrets.txt' for further use.
2. Run `python setup.py` to set your SMTP parameters and desired email subject. Also set your Mastodon's full path. They will be saved to `secrets/secrets.txt` for further use.
3. Run 'mailing.py' to start emailing your inactive users ('last_sign_in_at' older than a year). Their username, account_id, email, delivery status (True if successful) and delivery date will be written to Postgresql database. There is another column, 'deleted', False by default. Will be useful to track deleted/not deleted inactive users if you choose to do so.
3. Run `python mailing.py` to start emailing your inactive users (`last_sign_in_at` column older than a year). Their username, account_id, email, delivery status (True if successful) and delivery date will be written to Postgresql database. There is another column, `deleted`, False by default. Will be useful to track deleted/not deleted inactive users if you choose to do so.
4. Use your favourite scheduling method to set mailing.py to run regularly. Column 'elapsed_days' of mailing's database will be updated so you can decide actions after some time.
5. Run "delete_inactives.py' to delete all inactive users after 30 days period from the warning email.
5. Run `python delete_inactives.py` to delete all inactive users after 30 days period from the warning email.
Note: install all needed packages with 'pip install -r requirements.txt'
6. Run `python edit_status.py` to set True or False any of following `mailing_db_table` columns: `to_be_deleted`, `feedback` and `recipient_error`.
Note: install all needed packages with `pip install -r requirements.txt`