优化代码

dependabot/npm_and_yarn/fir_admin/axios-0.21.2
MMXX 3 years ago
parent d930603919
commit d15b583804
  1. 12
      fir_ser/common/utils/caches.py

@ -34,15 +34,19 @@ def sync_download_times_by_app_id(app_ids):
def del_cache_response_by_short(app_id, udid=''): def del_cache_response_by_short(app_id, udid=''):
app_obj = Apps.objects.filter(app_id=app_id).first() app_obj = Apps.objects.filter(app_id=app_id).first()
invalid_app_cache(app_obj) if app_obj:
invalid_app_cache(app_obj.has_combo) invalid_app_cache(app_obj)
if app_obj.has_combo:
invalid_app_cache(app_obj.has_combo)
def del_cache_by_delete_app(app_id): def del_cache_by_delete_app(app_id):
invalid_app_download_times_cache(app_id) invalid_app_download_times_cache(app_id)
app_obj = Apps.objects.filter(app_id=app_id).first() app_obj = Apps.objects.filter(app_id=app_id).first()
invalid_app_cache(app_obj) if app_obj:
invalid_app_cache(app_obj.has_combo) invalid_app_cache(app_obj)
if app_obj.has_combo:
invalid_app_cache(app_obj.has_combo)
def del_cache_by_app_id(app_id, user_obj): def del_cache_by_app_id(app_id, user_obj):

Loading…
Cancel
Save