Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Update tools.vue #905

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/pages/tools.vue
Original file line number Diff line number Diff line change
@@ -42,8 +42,10 @@
<div class="border-t px-6 pb-3 border-gray-300 divide-gray-300 divide-y">
<DetailAction @action="modals.import = true">
<template #title>Import Inventory</template>
Imports the standard CSV format for Homebox. This will <b>not</b> overwrite any existing items in your
inventory. It will only add new items.
Imports the standard CSV format for Homebox. Without an <code>HB.import_ref</code>
column, this will <b>not</b> overwrite any existing items in your inventory, only add new items.
Rows with an <code>HB.import_ref</code> column are merged into existing items with the same import_ref,
if one exists.
</DetailAction>
<DetailAction @action="getExportTSV()">
<template #title>Export Inventory</template>

Unchanged files with check annotations Beta

return int(aid)
}
func ParseAssetIDBytes(d []byte) (AID AssetID, ok bool) {

Check failure on line 19 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

captLocal: `AID' should not be capitalized (gocritic)
d = bytes.Replace(d, []byte(`"`), []byte(``), -1)

Check failure on line 20 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(d, []byte(`"`), []byte(``), -1)` (gocritic)
d = bytes.Replace(d, []byte(`-`), []byte(``), -1)

Check failure on line 21 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(d, []byte(`-`), []byte(``), -1)` (gocritic)
aidInt, err := strconv.Atoi(string(d))
if err != nil {
return AssetID(aidInt), true
}
func ParseAssetID(s string) (AID AssetID, ok bool) {

Check failure on line 31 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

captLocal: `AID' should not be capitalized (gocritic)
return ParseAssetIDBytes([]byte(s))
}
return nil
}
d = bytes.Replace(d, []byte(`"`), []byte(``), -1)

Check failure on line 55 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(d, []byte(`"`), []byte(``), -1)` (gocritic)
d = bytes.Replace(d, []byte(`-`), []byte(``), -1)

Check failure on line 56 in backend/internal/data/repo/asset_id_type.go

GitHub Actions / Backend Server Tests / Go

wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(d, []byte(`-`), []byte(``), -1)` (gocritic)
aidInt, err := strconv.Atoi(string(d))
if err != nil {
return r.groupMapper.MapEachErr(r.db.Group.Query().All(ctx))
}
func (r *GroupRepository) StatsLocationsByPurchasePrice(ctx context.Context, GID uuid.UUID) ([]TotalsByOrganizer, error) {

Check failure on line 112 in backend/internal/data/repo/repo_group.go

GitHub Actions / Backend Server Tests / Go

captLocal: `GID' should not be capitalized (gocritic)
var v []TotalsByOrganizer
err := r.db.Location.Query().
return v, err
}
func (r *GroupRepository) StatsLabelsByPurchasePrice(ctx context.Context, GID uuid.UUID) ([]TotalsByOrganizer, error) {

Check failure on line 134 in backend/internal/data/repo/repo_group.go

GitHub Actions / Backend Server Tests / Go

captLocal: `GID' should not be capitalized (gocritic)
var v []TotalsByOrganizer
err := r.db.Label.Query().
return v, err
}
func (r *GroupRepository) StatsPurchasePrice(ctx context.Context, GID uuid.UUID, start, end time.Time) (*ValueOverTime, error) {

Check failure on line 160 in backend/internal/data/repo/repo_group.go

GitHub Actions / Backend Server Tests / Go

captLocal: `GID' should not be capitalized (gocritic)
// Get the Totals for the Start and End of the Given Time Period
q := `
SELECT
Save(ctx))
}
func (r *GroupRepository) GroupUpdate(ctx context.Context, ID uuid.UUID, data GroupUpdate) (Group, error) {

Check failure on line 267 in backend/internal/data/repo/repo_group.go

GitHub Actions / Backend Server Tests / Go

captLocal: `ID' should not be capitalized (gocritic)
entity, err := r.db.Group.UpdateOneID(ID).
SetName(data.Name).
SetCurrency(strings.ToLower(data.Currency)).