Explorar o código

修改新建地块接口

Your Name %!s(int64=5) %!d(string=hai) anos
pai
achega
479fd8195f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/Equipment/views.py

+ 1 - 1
apps/Equipment/views.py

@@ -2314,7 +2314,7 @@ class Repertory_New(ListView):
         except Exception as e:
             print(e)
             art_list = ""
-        nums = art_list.count()
+        nums = len(art_list)
         page = int(request.GET.get('page'))
         art = art_list[(9*(page-1)):(page*9)]
         return render(request, 'backstageNet/production/repertoryNew.html', context={"art":art,"nums":nums})