Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
073f98a1
Commit
073f98a1
authored
Jun 08, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add table
parent
2ceb2c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
raspDevList.go
models/raspDevList.go
+1
-1
No files found.
models/raspDevList.go
View file @
073f98a1
...
@@ -36,7 +36,7 @@ func UpdateDevList1(rasp RaspDevList) error {
...
@@ -36,7 +36,7 @@ func UpdateDevList1(rasp RaspDevList) error {
}
}
return
tx
.
Commit
()
.
Error
return
tx
.
Commit
()
.
Error
}
}
if
err
:=
tx
.
Where
(
"addr = ?"
,
rasp
.
Addr
)
.
Updates
(
if
err
:=
tx
.
Model
(
&
dev
)
.
Where
(
"addr = ?"
,
rasp
.
Addr
)
.
Updates
(
map
[
string
]
interface
{}{
map
[
string
]
interface
{}{
"pai_version"
:
rasp
.
PaiVersion
,
"pai_version"
:
rasp
.
PaiVersion
,
"update_time"
:
rasp
.
UpdateTime
,
"update_time"
:
rasp
.
UpdateTime
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment