添加更新时间
Showing
2 changed files
with
1 additions
and
2 deletions
... | @@ -13,6 +13,6 @@ class SpiderModel(Model): | ... | @@ -13,6 +13,6 @@ class SpiderModel(Model): |
13 | sourceName = fields.CharField(max_length=255, description="媒体资源名字", source_field='source_name') | 13 | sourceName = fields.CharField(max_length=255, description="媒体资源名字", source_field='source_name') |
14 | score = fields.FloatField(description="热度得分") | 14 | score = fields.FloatField(description="热度得分") |
15 | createTime = fields.DatetimeField(default=datetime.now, description="创建时间", source_field='create_time') | 15 | createTime = fields.DatetimeField(default=datetime.now, description="创建时间", source_field='create_time') |
16 | 16 | updateTime = fields.DatetimeField(default=datetime.now, description="更新时间", source_field='update_time') | |
17 | class Meta: | 17 | class Meta: |
18 | table = "spider_data" | 18 | table = "spider_data" | ... | ... |
... | @@ -3,7 +3,6 @@ import logging | ... | @@ -3,7 +3,6 @@ import logging |
3 | from typing import List, Any | 3 | from typing import List, Any |
4 | from app.model.mysql_model import SpiderModel | 4 | from app.model.mysql_model import SpiderModel |
5 | from superstream import Stream | 5 | from superstream import Stream |
6 | |||
7 | from app.job.job import scheduler | 6 | from app.job.job import scheduler |
8 | from app.schemas.spider_schema import ( | 7 | from app.schemas.spider_schema import ( |
9 | ApschedulerJob, | 8 | ApschedulerJob, | ... | ... |
-
Please register or sign in to post a comment