Skip to content

Commit

Permalink
temp feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Sep 27, 2024
1 parent 4040e3b commit 28b2bb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions handler/app/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func artifacts(c echo.Context, db *sql.DB, uri string, page int) error {
return DatabaseErr(c, errs, err)
}
data[records] = r
fmt.Println("RECORDS OF ARTIFACTS: ", len(r))
d, sum, err := stats(ctx, db, uri)
if err != nil {
return DatabaseErr(c, errs, err)
Expand Down
7 changes: 4 additions & 3 deletions model/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (f *Artifacts) ByForApproval(ctx context.Context, exec boil.ContextExecutor
fmt.Fprint(io.Discard, err)
return nil, nil
}
fmt.Println("B", f.Bytes, "C", f.Count)
const clause = "id DESC"
return models.Files(
qm.WithDeleted(),
Expand All @@ -173,9 +174,9 @@ func (f *Artifacts) byForApproval(ctx context.Context, exec boil.ContextExecutor
if invalidExec(exec) {
return ErrDB
}
// if f.Bytes > 0 && f.Count > 0 {
// return nil
// }
if f.Bytes > 0 && f.Count > 0 {
return nil
}
return models.NewQuery(
qm.WithDeleted(),
models.FileWhere.Deletedat.IsNotNull(),
Expand Down

0 comments on commit 28b2bb0

Please sign in to comment.