0

award_badges command broken?
 

If I attempt to use the once_award_badges/multi_award_badges commands, I get an exception in the command script.

Looks like "Badge" is no longer in the askbot models so the line

from askbot.models import User, Activity, Badge, Award, Question, Answer

fails.

Is the award command no longer necessary in the cron job? If so, the askbot_cron_job file should be updated.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
Benoit's avatar
875
Benoit
asked 14 years ago

Comments

see more comments

1 Answer

0

Benoit, sorry those commands are no longer needed - I forgot to delete them. Badges are now awarded without cron.

edit: now removed those from the code.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

see more comments