Skip to content

Commit

Permalink
always override
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Mar 1, 2021
1 parent 48b3721 commit f20a498
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Copy the script into your `lib/tasks` of your Decidim installation:

```
cd lib/tasks
wget -qO- https://github.com/Platoniq/decidim-scripts/archive/0.3.tar.gz | tar --transform 's/^decidim-scripts-0.3//' -xvz
wget -qO- https://github.com/Platoniq/decidim-scripts/archive/0.4.tar.gz | tar --transform 's/^decidim-scripts-0.4//' -xvz
```

Run in local (as testing):
Expand Down Expand Up @@ -130,7 +130,7 @@ wget https://transfer.sh/x3hUa/proposal-geolocs.csv
4. Download the scripts into the `lib/tasks` folder:

```
wget -qO- https://github.com/Platoniq/decidim-scripts/archive/0.3.tar.gz | tar --transform 's/^decidim-scripts-0.3//' -xvz -C lib/tasks
wget -qO- https://github.com/Platoniq/decidim-scripts/archive/0.4.tar.gz | tar --transform 's/^decidim-scripts-0.4//' -xvz -C lib/tasks
```

5. Run the script inside the shell session (2nd terminal):
Expand Down
6 changes: 3 additions & 3 deletions proposal_answers.rake
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ namespace :proposals do
@admin = admin
@values = values
@proposal = proposal_from_id(values[:id])
if @proposal.answered_at.present?
raise AlreadyProcessedError, "Proposal [#{@proposal.id}] already answered at #{@proposal.answered_at} as [#{@proposal.internal_state}]!"
end
# if @proposal.answered_at.present?
# raise AlreadyProcessedError, "Proposal [#{@proposal.id}] already answered at #{@proposal.answered_at} as [#{@proposal.internal_state}]!"
# end
if @proposal.component.current_settings.answers_with_costs?
raise UnprocessableError, "Proposal [#{@proposal.id}] requires costs definition!"
end
Expand Down

0 comments on commit f20a498

Please sign in to comment.