fix can't create entry

This commit is contained in:
2025-08-17 17:45:50 +02:00
parent a7c85ea3c6
commit 573fba708e
5 changed files with 18 additions and 5 deletions

View File

@@ -71,7 +71,9 @@ func (p *ListCmd) local(includeBackup bool) error {
for _, g := range games {
fmt.Println("ID:", g.ID)
fmt.Println("Name:", g.Name)
fmt.Println("Last Version:", g.Date, "( Version Number", g.Version, ")")
fmt.Println("Last Version:", g.Date)
fmt.Println("Version:", g.Version)
fmt.Println("MD5:", g.MD5)
if includeBackup {
bk, err := p.Service.AllBackups(g.ID)
if err != nil {
@@ -108,7 +110,9 @@ func (p *ListCmd) server(url, username, password string, includeBackup bool) err
for _, g := range games {
fmt.Println("ID:", g.ID)
fmt.Println("Name:", g.Name)
fmt.Println("Last Version:", g.Date, "( Version Number", g.Version, ")")
fmt.Println("Last Version:", g.Date)
fmt.Println("Version:", g.Version)
fmt.Println("MD5:", g.MD5)
if includeBackup {
bk, err := cli.ListArchives(g.ID)
if err != nil {

View File

@@ -78,7 +78,7 @@ func (p *RemoteCmd) print() error {
for _, g := range games {
r, err := remote.One(g.ID)
if err != nil {
return fmt.Errorf("failed to load datastore: %w", err)
continue
}
cli := client.New(r.URL, "", "")