baichongyang 3 tahun lalu
induk
melakukan
39ed16ed98
3 mengubah file dengan 66 tambahan dan 4 penghapusan
  1. 62 0
      .gitignore
  2. 4 4
      controller/pool_manager.py
  3. 0 0
      models/model.py

+ 62 - 0
.gitignore

@@ -0,0 +1,62 @@
+# ---> Python
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+.idea/
+.DS_Store

+ 4 - 4
controller/pool_manager.py

@@ -64,10 +64,10 @@ class pool_manager:
         if len(res_all)<self.counts:
             res_backup = self._get_data_from_cache(config_redis.ROV_SERVICE_BACKUP_VIDS, self.counts-len(res_all))    
             res_all.extend(res_backup[:self.counts-len(res_all)])
-        #TODO
-        #添加score及from来源
-        #TODO
-        #无数据,不再过滤,继续兜底
+            #TODO
+            #添加score及from来源
+            #TODO
+            #无数据,不再过滤,继续兜底
         return res_all
 
 

+ 0 - 0
models/model.py