@@ -20,7 +20,7 @@ class Command(CompatibilityBaseCommand): |
||
| 20 | 20 |
logger.info('Upload image qiniu is dealing')
|
| 21 | 21 |
|
| 22 | 22 |
while True: |
| 23 |
- # r.rpushjson('QINIU_UPLOAD_LIST', {
|
|
| 23 |
+ # r.rpushjson(QINIU_UPLOAD_LIST, {
|
|
| 24 | 24 |
# 'model': 'SaleclerkSubmitLogInfo', |
| 25 | 25 |
# 'pk': 'pk', |
| 26 | 26 |
# }) |
@@ -6,6 +6,7 @@ from django_six import CompatibilityBaseCommand |
||
| 6 | 6 |
|
| 7 | 7 |
from integral.models import SaleclerkSubmitLogInfo |
| 8 | 8 |
from utils.redis.connect import r |
| 9 |
+from utils.redis.rkeys import QINIU_UPLOAD_LIST |
|
| 9 | 10 |
|
| 10 | 11 |
|
| 11 | 12 |
logger = logging.getLogger('console')
|
@@ -19,7 +20,7 @@ class Command(CompatibilityBaseCommand): |
||
| 19 | 20 |
sslis = SaleclerkSubmitLogInfo.objects.filter(is_upload_qiniu=False) |
| 20 | 21 |
|
| 21 | 22 |
for ssli in sslis: |
| 22 |
- r.rpushjson('QINIU_UPLOAD_LIST', {
|
|
| 23 |
+ r.rpushjson(QINIU_UPLOAD_LIST, {
|
|
| 23 | 24 |
'model': 'SaleclerkSubmitLogInfo', |
| 24 | 25 |
'pk': ssli.pk, |
| 25 | 26 |
}) |