Revision 9ee31b09 db/management/commands/credit_alloc.py
b/db/management/commands/credit_alloc.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# Credit Allocator Command - Management Script |
3 | 3 |
# |
4 |
# Invokes credit allocator from manage.py
|
|
4 |
# Credit allocator management command
|
|
5 | 5 |
# |
6 | 6 |
# Copyright 2010 Greek Research and Technology Network |
7 | 7 |
# |
... | ... | |
11 | 11 |
from db import credit_allocator |
12 | 12 |
|
13 | 13 |
class Command(NoArgsCommand): |
14 |
help = 'Infuse user with their monthly rate credits'
|
|
14 |
help = 'Add credits to users according to their monthly rate'
|
|
15 | 15 |
|
16 | 16 |
def handle_noargs(self, **options): |
17 |
credit_allocator.allocate_credit() |
|
18 |
return |
|
17 |
credit_allocator.allocate_credit() |
Also available in: Unified diff