|
@@ -577,13 +577,11 @@ class serveManagement(View):
|
|
|
if region == 'cn':
|
|
|
# 下载国内未使用激活码
|
|
|
content += '激活码(国内)\n'
|
|
|
- cdk_inactivate_qs = CDKcontextModel.objects.filter(
|
|
|
- is_activate=0, rank__bucket__mold=0, rank__is_show=0).values('cdk')
|
|
|
+ cdk_inactivate_qs = CDKcontextModel.objects.filter(is_down=0, is_activate=0, rank__bucket__mold=0, rank__is_show=0).values('cdk')
|
|
|
else:
|
|
|
# 下载国外未使用激活码
|
|
|
content += '激活码(国外)\n'
|
|
|
- cdk_inactivate_qs = CDKcontextModel.objects.filter(
|
|
|
- is_activate=0, rank__bucket__mold=1, rank__is_show=0).values('cdk')
|
|
|
+ cdk_inactivate_qs = CDKcontextModel.objects.filter(is_down=0, is_activate=0, rank__bucket__mold=1, rank__is_show=0).values('cdk')
|
|
|
for cdk_inactivate in cdk_inactivate_qs:
|
|
|
content += cdk_inactivate['cdk'] + '\n'
|
|
|
# print(content)
|