Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
文鑫
/
guduo_spider
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2c400f99
...
2c400f99b93cc28ed0610bf938d1827edfd254af
authored
2024-12-22 23:25:10 +0800
by
文鑫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加更新时间
1 parent
d8828574
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
app/model/mysql_model.py
app/service/spider_job_service.py
app/model/mysql_model.py
View file @
2c400f9
...
...
@@ -13,6 +13,6 @@ class SpiderModel(Model):
sourceName
=
fields
.
CharField
(
max_length
=
255
,
description
=
"媒体资源名字"
,
source_field
=
'source_name'
)
score
=
fields
.
FloatField
(
description
=
"热度得分"
)
createTime
=
fields
.
DatetimeField
(
default
=
datetime
.
now
,
description
=
"创建时间"
,
source_field
=
'create_time'
)
updateTime
=
fields
.
DatetimeField
(
default
=
datetime
.
now
,
description
=
"更新时间"
,
source_field
=
'update_time'
)
class
Meta
:
table
=
"spider_data"
...
...
app/service/spider_job_service.py
View file @
2c400f9
...
...
@@ -3,7 +3,6 @@ import logging
from
typing
import
List
,
Any
from
app.model.mysql_model
import
SpiderModel
from
superstream
import
Stream
from
app.job.job
import
scheduler
from
app.schemas.spider_schema
import
(
ApschedulerJob
,
...
...
Please
register
or
sign in
to post a comment