Skip to content

Commit a746bdc

Browse files
committed
fixed find topic
1 parent dbc61ce commit a746bdc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

models/topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func FindTopics(opts *FindTopicOptions) (topics []*Topic, err error) {
171171
if opts.RepoID > 0 {
172172
sess.Join("INNER", "repo_topic", "repo_topic.topic_id = topic.id")
173173
}
174-
if opts.Page != 0 {
174+
if opts.PageSize != 0 {
175175
sess = opts.setSessionPagination(sess)
176176
}
177177
return topics, sess.Desc("topic.repo_count").Find(&topics)

options/gitignore/Matlab

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ codegen/
2424
# Simulink autosave extension
2525
*.autosave
2626

27+
# Simulink cache files
28+
*.slxc
29+
2730
# Octave session info
2831
octave-workspace

0 commit comments

Comments
 (0)