Skip to content

Commit

Permalink
changed to an explicit 7 day window for remember and digest
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfusheep committed Aug 31, 2023
1 parent dbb7e76 commit 77b8372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function __i_analyse {

# use gpt to summarise the weeks activity into a digest
function __i_digest {
OUT=$(git -C $I_PATH/ log --since "last friday" --pretty=format:"%cr: %B" | tr -d '"\n')
OUT=$(git -C $I_PATH/ log --since "7 days ago" --pretty=format:"%cr: %B" | tr -d '"\n')

curl -X POST -s --no-buffer \
-H "Content-Type: application/json" \
Expand All @@ -200,7 +200,7 @@ function __i_digest {

# use gpt to generate a todo list of tasks that sound like they are outstanding from the previous week
function __i_remember {
OUT=$(git -C $I_PATH/ log --since "last monday" --pretty=format:"%cr: %B" | tr -d '"\n')
OUT=$(git -C $I_PATH/ log --since "7 days ago" --pretty=format:"%cr: %B" | tr -d '"\n')

curl -X POST -s --no-buffer \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit 77b8372

Please sign in to comment.