:art: Qiniu Producer

huangqimin001 преди 4 години
родител
ревизия
faf0e778f5
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 1 1
      commands/management/commands/qiniu.py
  2. 2 1
      commands/management/commands/qiniuproducer.py

+ 1 - 1
commands/management/commands/qiniu.py

@@ -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
             # })

+ 2 - 1
commands/management/commands/qiniuproducer.py

@@ -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
             })