Skip to content

Commit

Permalink
Merge branch 'main' into feature/votes_search
Browse files Browse the repository at this point in the history
  • Loading branch information
kazharski authored Jul 22, 2024
2 parents 314c26d + 76db842 commit 20ada83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.22] - 2024-07-22

### Added
- Search for votes

## [0.1.21] - 2024-07-06

### Changed
- Top proposals calculation

## [0.1.20] - 2024-07-05

### Changed
- Extend vote response with proposal identifier

Expand Down
1 change: 1 addition & 0 deletions internal/proposal/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (r *Repo) GetTop(filters []Filter) (ProposalList, error) {
"from proposals where state = 'active' and spam is not true and votes >= 30) pr on pr.id = proposals.id and pr.r <= 2").
InnerJoins("inner join daos on daos.id = proposals.dao_id").
Order("daos.verified desc").
Order("pr.r").
Order("votes/(EXTRACT(EPOCH FROM CURRENT_TIMESTAMP)-start) desc")

var (
Expand Down

0 comments on commit 20ada83

Please sign in to comment.