mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	#3417 wrong dashboard issue count for create by you
This commit is contained in:
		@@ -3,7 +3,7 @@ Gogs - Go Git Service [
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Current tip version: 0.9.70 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
					##### Current tip version: 0.9.71 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Web | UI  | Preview  |
 | 
					| Web | UI  | Preview  |
 | 
				
			||||||
|:-------------:|:-------:|:-------:|
 | 
					|:-------------:|:-------:|:-------:|
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.9.70.0808"
 | 
					const APP_VER = "0.9.71.0808"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -911,7 +911,7 @@ func GetUserIssueStats(repoID, uid int64, repoIDs []int64, filterMode int, isPul
 | 
				
			|||||||
		Count(&Issue{})
 | 
							Count(&Issue{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	stats.CreateCount, _ = countSession(false, isPull, repoID, repoIDs).
 | 
						stats.CreateCount, _ = countSession(false, isPull, repoID, repoIDs).
 | 
				
			||||||
		And("assignee_id = ?", uid).
 | 
							And("poster_id = ?", uid).
 | 
				
			||||||
		Count(&Issue{})
 | 
							Count(&Issue{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	openCountSession := countSession(false, isPull, repoID, repoIDs)
 | 
						openCountSession := countSession(false, isPull, repoID, repoIDs)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.9.70.0808
 | 
					0.9.71.0808
 | 
				
			||||||
		Reference in New Issue
	
	Block a user