update

FFIB 13 godzin temu
rodzic
commit
3547afd981
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/encrypt_views.py

+ 1 - 1
api/encrypt_views.py

@@ -267,7 +267,7 @@ def decrypt2(request, v='v2'):
267 267
         activities = ActivityInfo.objects.filter(status=True).order_by('-pk')
268 268
         coupon_infos = [act.coupon_info3 for act in activities if act.has_unexpired_activity(model.model_name)]
269 269
     
270
-    if dupload or unbound:  
270
+    if not dupload and not unbound:  
271 271
         lotterys = LotteryCampaignInfo.objects.filter(status=True)
272 272
         if lotterys.exists():
273 273
             active_lotterys = [lottery.data for lottery in lotterys if lottery.is_active() and model.model_uni_name in lottery.model_ids]