Drug filtering added to listdose #14

Merged
pratyush merged 1 commits from feat/listdose_drug into master 2024-11-29 23:22:28 +01:00
Owner

listdose now supports filtering with drug

(listdose [--drug <drug>] <n>) -- Retrieves your <n> last logged doses, optionally filtered by drug.

Signed-off-by: Pratyush Desai pratyush.desai@liberta.casa

listdose now supports filtering with drug `(listdose [--drug <drug>] <n>) -- Retrieves your <n> last logged doses, optionally filtered by drug. ` Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
pratyush added 1 commit 2024-11-29 22:48:04 +01:00
listdose now supports filtering with drug

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Georg reviewed 2024-11-29 22:53:29 +01:00
plugin.py Outdated
@ -280,0 +287,4 @@
rangecheck = doses[-int(history)]
irc.reply(f"Your last {history} dose(s) are:", private=True)
for number in range(history, 0, -1):
lastdose = doses[-int(number)]
Owner

number should already be an integer, not necessary to cast it with int(), but of course not a problem either

`number` should already be an integer, not necessary to cast it with int(), but of course not a problem either
Author
Owner

neither is the rangecheck = doses[-int(history)] assignment used.

neither is the `rangecheck = doses[-int(history)]` assignment used.
pratyush marked this conversation as resolved
Georg approved these changes 2024-11-29 22:53:43 +01:00
Dismissed
Georg left a comment
Owner

cool :)

cool :)
pratyush force-pushed feat/listdose_drug from e75cdc908d to bcb385d3e8 2024-11-29 23:19:01 +01:00 Compare
pratyush dismissed Georg’s review 2024-11-29 23:19:02 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

pratyush merged commit f53ddf450c into master 2024-11-29 23:22:28 +01:00
pratyush deleted branch feat/listdose_drug 2024-11-29 23:22:28 +01:00
Sign in to join this conversation.
No description provided.