not clerk.test_user

Kimi.Huang 6 ans auparavant
Parent
Commettre
e968470256
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
         # 日销量统计