Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b925d0

Browse files
committed
bugfix
1 parent 5399311 commit 9b925d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func (ProjectLogic) ParseOneProject(projectUrl string) error {
459459
})
460460

461461
project.Desc = strings.TrimSpace(desc)
462-
project.Username = PresetUsernames[rand.Intn(4)]
462+
project.Username = PresetUsernames[rand.Intn(len(PresetUsernames))]
463463
project.Status = model.ProjectStatusOnline
464464
project.Ctime = model.OftenTime(time.Now())
465465

0 commit comments

Comments
 (0)