罗俊辉 преди 1 година
родител
ревизия
32a22b3fad
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      routes/articleDBServer.py
  2. 1 1
      test/rank_dev.py

+ 2 - 2
routes/articleDBServer.py

@@ -76,8 +76,8 @@ class ArticleSpider(object):
             appMsgId = info.get("AppMsg", {}).get("BaseInfo", {}).get("AppMsgId", None)
             createTime = info.get("AppMsg", {}).get("BaseInfo", {}).get("CreateTime", None)
             updateTime = info.get("AppMsg", {}).get("BaseInfo", {}).get("UpdateTime", None)
-            # if int(time.time()) - int(updateTime) <= 20 * 60 * 60:
-            #     continue
+            if int(time.time()) - int(updateTime) <= 20 * 60 * 60:
+                continue
             Type = info.get("AppMsg", {}).get("BaseInfo", {}).get("Type", None)
             detail_article_list = info.get("AppMsg", {}).get("DetailInfo", [])
             if detail_article_list:

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
test/rank_dev.py


Някои файлове не бяха показани, защото твърде много файлове са промени