tanghongbin пре 5 година
родитељ
комит
ebb25db3ad
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      AnsjerUIDManage/settings.py
  2. 2 2
      Controller/FileController.py

+ 1 - 1
AnsjerUIDManage/settings.py

@@ -114,7 +114,7 @@ DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.mysql',
         'NAME': 'ansjer_uid',
-        'USER': 'ansjer',
+        'USER': 'root',
         'PASSWORD': 'ansjer.x.x',
         'HOST': 'localhost',
         'PORT': '3306',

+ 2 - 2
Controller/FileController.py

@@ -111,8 +111,8 @@ class UploadUIDFileView(View):
                                                                                                      uid_extra=uidModel.uid_extra,
                                                                                                      status=uidModel.status,
                                                                                                      area=uidModel.area))
-            uidModel.save()
-            # bulk.append(uidModel)
+            # uidModel.save()
+            bulk.append(uidModel)
             try:
                 try:
                     if (count % 5000) == 0: