did icon indicating copy to clipboard operation
did copied to clipboard

`did last friday` - only friday supported?

Open achingbrain opened this issue 2 years ago • 1 comments

The last friday command example in the README is neat but unless I'm missing something only friday seems to be supported as a argument?

% did last friday
Status report for the last friday (2023-05-12 to 2023-05-12).
... report here
% did last thursday
 ERROR  Invalid argument: 'thursday'
% did last wednesday
 ERROR  Invalid argument: 'wednesday'
% did last tuesday  
 ERROR  Invalid argument: 'tuesday'

...etc

It'd be really nice any day could be used.

achingbrain avatar May 17 '23 06:05 achingbrain

Nice idea, sounds good! And should be fairly easy to implement:

https://github.com/psss/did/blob/9ceed73b7f7dcb03b30f267eca70a820b6257dcf/did/base.py#L332-L338

Pull request is welcome :)

psss avatar May 31 '23 10:05 psss