Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
fix fork boomerang rating
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorina committed Jul 20, 2017
1 parent a198759 commit 9488f8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crowdsourcing/serializers/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,12 @@ def fork(self, *args, **kwargs):
project.status = models.Project.STATUS_DRAFT
project.is_prototype = False
project.parent_id = self.instance.id
project.last_opened_at = None
project.aux_attributes = {"sort_results_by": "worker_id"}
project.amount_due = 0
project.min_rating = 3.0
project.is_paid = False
project.previous_min_rating = 3.0
project.discussion_link = None

template.pk = None
Expand Down
2 changes: 1 addition & 1 deletion systemd/celery_beat.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=celery
Group=celery
ExecStart=/bin/bash -c 'cd /daemo; /usr/local/bin/celery -A csp beat -l info'
ExecStart=/bin/bash -c 'cd /daemo; /usr/local/bin/celery -A csp beat -l info --pidfile=/tmp/celerybeat-daemo.pid'

[Install]
WantedBy=multi-user.target

0 comments on commit 9488f8f

Please sign in to comment.