Re: [PATCH] Exclude suspended Users from being notified

2020-07-03 Thread Kevin Morris
Alright, that's the final patch revision. This change ultimately just removes suspended users from the sql results in `notify.py`, which excludes them from all email notifications. On Fri, Jul 3, 2020 at 6:29 PM Kevin Morris wrote: > The existing notify.py script was grabbing entries regardless

[PATCH] Exclude suspended Users from being notified

2020-07-03 Thread Kevin Morris
The existing notify.py script was grabbing entries regardless of user suspension. This has been modified to only send notifications to unsuspended users. This change was written as a solution to https://bugs.archlinux.org/task/65554. Signed-off-by: Kevin Morris --- aurweb/scripts/notify.py |

Re: [PATCH] Remove PackageNotifications when User is suspended

2020-07-03 Thread Kevin Morris
Updated patch inc which only modifies `scripts/notify.py` and preserves notification records. On Fri, Jul 3, 2020 at 12:02 PM Kevin Morris wrote: > This path will only trigger when suspending a user through an > account page; if the database is managed manually or through > another script,

[PATCH] Exclude suspended Users from being notified

2020-07-03 Thread Kevin Morris
The existing notify.py script was grabbing entries regardless of user suspension. This has been modified to only send notifications to unsuspended users, except for a Trusted User Vote Notification. This change was written as a solution to https://bugs.archlinux.org/task/65554. Signed-off-by:

[PATCH] Remove PackageNotifications when User is suspended

2020-07-03 Thread Kevin Morris
This path will only trigger when suspending a user through an account page; if the database is managed manually or through another script, PackageNotifications will also need manual modifications if intended. This change was written as a solution to https://bugs.archlinux.org/task/65554.

Re: [PATCH] Add POST support for RPC API

2020-07-03 Thread Kevin Morris
Apologies, `application/data` in the commit message's example should be `application/json`, and will need to be updated after review(s) in the final commit. On Fri, Jul 3, 2020 at 10:53 AM Kevin Morris wrote: > When we received a POST method from a client, deduce our `$data` > by determining

[PATCH] Add POST support for RPC API

2020-07-03 Thread Kevin Morris
When we received a POST method from a client, deduce our `$data` by determining which `Content-Type` is used. Supported `Content-Type`s = * `application/json` * `multipart/form-data` `application/json` POST Example, searching for 'test': ``` curl -X POST -H