aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | | | | | | | Merge pull request #2268 from python-discord/pin-poetry-to-1.1.XGravatar Hassan Abouelela2022-09-13-72/+22
|\ \ \ \ \ \ \ \ | |_|_|_|/ / / / |/| | | | | | |
| * | | | | | | Don't use fake in-project venvs for poetryGravatar Chris Lovering2022-09-12-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead let poetry install the venv for the project in the right place, leading to a more 'traditional' poetry setup.
| * | | | | | | Bump poetry in Docker and lint to 1.2.0Gravatar Chris Lovering2022-09-11-1/+1
| | | | | | | |
| * | | | | | | Use HassanAbouelela/setup-python for CIGravatar Chris Lovering2022-09-11-57/+5
| | | | | | | |
| * | | | | | | Use venvs with poetry in DockerfileGravatar Chris Lovering2022-09-10-6/+16
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | This is required due to a regression in poetry, see https://github.com/HassanAbouelela/actions/pull/7
* | | | | | | Merge pull request #2234 from python-discord/infraction-durationsGravatar Boris Muratov2022-08-19-59/+133
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fixes infraction display duration off-by-one discrepancy
| * \ \ \ \ \ \ Merge branch 'main' into infraction-durationsGravatar Boris Muratov2022-08-19-33/+186
| |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Duration for DM changed to Edited flagGravatar ionite342022-08-19-10/+7
| | | | | | | |
| * | | | | | | Made DM duration remaining optional with resendGravatar ionite342022-08-18-6/+8
| | | | | | | |
| * | | | | | | Merge branch 'infraction-durations' of https://github.com/python-discord/bot ↵Gravatar ionite342022-08-18-1518/+382
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into infraction-durations
| | * \ \ \ \ \ \ Merge branch 'main' into infraction-durationsGravatar Ionite2022-08-17-3/+7
| | |\ \ \ \ \ \ \
| | * | | | | | | | Removed unused datetime importGravatar ionite342022-08-16-1/+0
| | | | | | | | | |
| | * | | | | | | | Updated infractions display for updatesGravatar ionite342022-08-16-23/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new infraction delta calculations to updated infractions. - Updates of infraction durations now also update the `last_applied` field. - `inserted_at` is now sent by the bot client to denote the original unmodified infraction application time
| | * | | | | | | | Corrected test use of utcnowGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected test case to use `datetime.utcnow()` to be consistent with target
| | * | | | | | | | Updated previous tests to use subset methodGravatar ionite342022-08-16-7/+5
| | | | | | | | | |
| | * | | | | | | | Refactored test to not use datetime patchGravatar ionite342022-08-16-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
| | * | | | | | | | Removed `inserted_at` fallbackGravatar ionite342022-08-16-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given API updates, the fallback is not needed
| | * | | | | | | | Changed datetime.now to arrow.utcnowGravatar ionite342022-08-16-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used arrow.utcnow to reduce complexity and import
| | * | | | | | | | Infraction duration fallback if no `last_applied` fieldGravatar ionite342022-08-16-2/+13
| | | | | | | | | |
| | * | | | | | | | Added microsecond rounding for `humanize_delta`Gravatar ionite342022-08-16-1/+16
| | | | | | | | | |
| | * | | | | | | | Added new expiry usage to applyGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new usage of `last_applied` time for duration calculation in `apply_infraction`
| | * | | | | | | | Use `last_applied` to display durationGravatar ionite342022-08-16-1/+2
| | | | | | | | | |
| | * | | | | | | | Correct last_applied formattingGravatar ionite342022-08-16-1/+1
| | | | | | | | | |
| | * | | | | | | | Fixed testsGravatar ionite342022-08-16-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Corrected datetime patching
| | * | | | | | | | Updated ban command docstringGravatar ionite342022-08-16-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated docstring to be more explicit on parameter fields
| | * | | | | | | | Updated parameter namesGravatar ionite342022-08-16-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
| | * | | | | | | | Added isoformat for test payloadGravatar ionite342022-08-16-1/+1
| | | | | | | | | |
| | * | | | | | | | Fixed test patchesGravatar ionite342022-08-16-15/+17
| | | | | | | | | |
| | * | | | | | | | Updated testsGravatar ionite342022-08-16-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored tests for new time duration arguments
| | * | | | | | | | Ran isort on importsGravatar ionite342022-08-16-2/+2
| | | | | | | | | |
| | * | | | | | | | Refactoring for DurationOrExpiryGravatar ionite342022-08-16-25/+33
| | | | | | | | | |
| | * | | | | | | | Added `DurationOrExpiry` type unionGravatar ionite342022-08-16-0/+1
| | | |_|_|_|/ / / | | |/| | | | | |
| * | | | | | | | Removed unused datetime importGravatar ionite342022-08-13-1/+0
| | | | | | | | |
| * | | | | | | | Updated infractions display for updatesGravatar ionite342022-08-13-23/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new infraction delta calculations to updated infractions. - Updates of infraction durations now also update the `last_applied` field. - `inserted_at` is now sent by the bot client to denote the original unmodified infraction application time
| * | | | | | | | Corrected test use of utcnowGravatar ionite342022-08-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected test case to use `datetime.utcnow()` to be consistent with target
| * | | | | | | | Updated previous tests to use subset methodGravatar ionite342022-08-06-7/+5
| | | | | | | | |
| * | | | | | | | Refactored test to not use datetime patchGravatar ionite342022-08-06-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
| * | | | | | | | Removed `inserted_at` fallbackGravatar ionite342022-08-06-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given API updates, the fallback is not needed
| * | | | | | | | Changed datetime.now to arrow.utcnowGravatar ionite342022-08-06-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used arrow.utcnow to reduce complexity and import
| * | | | | | | | Infraction duration fallback if no `last_applied` fieldGravatar ionite342022-08-01-2/+13
| | | | | | | | |
| * | | | | | | | Added microsecond rounding for `humanize_delta`Gravatar ionite342022-08-01-1/+16
| | | | | | | | |
| * | | | | | | | Added new expiry usage to applyGravatar ionite342022-07-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new usage of `last_applied` time for duration calculation in `apply_infraction`
| * | | | | | | | Use `last_applied` to display durationGravatar ionite342022-07-28-1/+2
| | | | | | | | |
| * | | | | | | | Correct last_applied formattingGravatar ionite342022-07-28-1/+1
| | | | | | | | |
| * | | | | | | | Fixed testsGravatar ionite342022-07-28-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Corrected datetime patching
| * | | | | | | | Updated ban command docstringGravatar ionite342022-07-28-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated docstring to be more explicit on parameter fields
| * | | | | | | | Updated parameter namesGravatar ionite342022-07-28-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
| * | | | | | | | Added isoformat for test payloadGravatar ionite342022-07-28-1/+1
| | | | | | | | |
| * | | | | | | | Fixed test patchesGravatar ionite342022-07-28-15/+17
| | | | | | | | |
| * | | | | | | | Updated testsGravatar ionite342022-07-28-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored tests for new time duration arguments