diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/list.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index 2c91e66..0330be1 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -49,11 +49,14 @@ pub async fn launch() -> Result<()> { | |||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | let statuses: Vec<nostr::Event> = { | 51 | let statuses: Vec<nostr::Event> = { |
| 52 | let mut statuses = get_events_from_local_cache(git_repo_path, vec![ | 52 | let mut statuses = get_events_from_local_cache( |
| 53 | nostr::Filter::default() | 53 | git_repo_path, |
| 54 | .kinds(status_kinds().clone()) | 54 | vec![ |
| 55 | .events(proposals_and_revisions.iter().map(|e| e.id)), | 55 | nostr::Filter::default() |
| 56 | ]) | 56 | .kinds(status_kinds().clone()) |
| 57 | .events(proposals_and_revisions.iter().map(|e| e.id)), | ||
| 58 | ], | ||
| 59 | ) | ||
| 57 | .await?; | 60 | .await?; |
| 58 | statuses.sort_by_key(|e| e.created_at); | 61 | statuses.sort_by_key(|e| e.created_at); |
| 59 | statuses.reverse(); | 62 | statuses.reverse(); |