not clerk.test_user

Kimi.Huang 6 年之前
父节点
当前提交
e968470256
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      page/sale_views.py

+ 1 - 1
page/sale_views.py

@@ -156,7 +156,7 @@ def clerk_sale_submit_api(request):
156 156
         )
157 157
 
158 158
     # TODO: Make statistic async
159
-    if not sci:
159
+    if not clerk.test_user and not sci:
160 160
         ymd = tc.local_string(format='%Y%m%d')
161 161
 
162 162
         # 日销量统计