mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	go fmt
This commit is contained in:
		@@ -551,7 +551,7 @@ func GetAccountTransactions(user *User, accountid int64, sort string, page uint6
 | 
				
			|||||||
	if sort == "date-asc" {
 | 
						if sort == "date-asc" {
 | 
				
			||||||
		sqlsort = " ORDER BY transactions.Date ASC"
 | 
							sqlsort = " ORDER BY transactions.Date ASC"
 | 
				
			||||||
		balanceLimitOffset = " LIMIT ?"
 | 
							balanceLimitOffset = " LIMIT ?"
 | 
				
			||||||
		balanceLimitOffsetArg = page*limit
 | 
							balanceLimitOffsetArg = page * limit
 | 
				
			||||||
	} else if sort == "date-desc" {
 | 
						} else if sort == "date-desc" {
 | 
				
			||||||
		numSplits, err := transaction.SelectInt("SELECT count(*) FROM splits")
 | 
							numSplits, err := transaction.SelectInt("SELECT count(*) FROM splits")
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
@@ -560,7 +560,7 @@ func GetAccountTransactions(user *User, accountid int64, sort string, page uint6
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		sqlsort = " ORDER BY transactions.Date DESC"
 | 
							sqlsort = " ORDER BY transactions.Date DESC"
 | 
				
			||||||
		balanceLimitOffset = fmt.Sprintf(" LIMIT %d OFFSET ?", numSplits)
 | 
							balanceLimitOffset = fmt.Sprintf(" LIMIT %d OFFSET ?", numSplits)
 | 
				
			||||||
		balanceLimitOffsetArg = (page + 1)*limit
 | 
							balanceLimitOffsetArg = (page + 1) * limit
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var sqloffset string
 | 
						var sqloffset string
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user