Skip to content

Commit

Permalink
filter out draft reports
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Dec 20, 2023
1 parent ffc7086 commit 0fc3ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func open(file string) {
var user data.Accounts_User
var users []string

db.Where("remote_id IS NULL").Or("remote_id = ?", "").Find(&events)
db.Where("is_draft = 0").Where(db.Where("remote_id IS NULL").Or("remote_id = ?", "")).Find(&events)

table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"ID", "User", "Title"})
Expand Down

0 comments on commit 0fc3ae0

Please sign in to comment.