Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
admin-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
admin-backend
Commits
070955e2
Commit
070955e2
authored
Mar 19, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify task
parent
a821548f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
task.go
controllers/task.go
+2
-2
No files found.
controllers/task.go
View file @
070955e2
...
@@ -1851,7 +1851,7 @@ func (server *TaskController) GetTaskTypes() {
...
@@ -1851,7 +1851,7 @@ func (server *TaskController) GetTaskTypes() {
if
eer
!=
nil
{
if
eer
!=
nil
{
}
}
var
examples
[]
models
.
ExampleType
var
examples
interface
{}
eer
=
json
.
Unmarshal
([]
byte
(
data
.
Examples
),
&
examples
)
eer
=
json
.
Unmarshal
([]
byte
(
data
.
Examples
),
&
examples
)
if
eer
!=
nil
{
if
eer
!=
nil
{
...
@@ -2127,7 +2127,7 @@ func (server *TaskController) Examples() {
...
@@ -2127,7 +2127,7 @@ func (server *TaskController) Examples() {
where
=
fmt
.
Sprintf
(
"and (`name` LIKE '%s' OR `desc` LIKE '%s' OR tags LIKE '%s')"
,
keyword
,
keyword
,
keyword
)
where
=
fmt
.
Sprintf
(
"and (`name` LIKE '%s' OR `desc` LIKE '%s' OR tags LIKE '%s')"
,
keyword
,
keyword
,
keyword
)
}
}
if
appRequest
.
Category
!=
0
{
if
appRequest
.
Category
!=
0
{
where
=
fmt
.
Sprintf
(
"
and category = %d"
,
appRequest
.
Category
)
where
=
fmt
.
Sprintf
(
"
%s and category = %d"
,
where
,
appRequest
.
Category
)
}
}
}
}
...
...
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