Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
physical
Commits
e68270df
Commit
e68270df
authored
Feb 15, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add language_type in mapping
parent
b81ec78c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
topic.json
trans2es/mapping/topic.json
+3
-1
topic.py
trans2es/models/topic.py
+1
-0
topic_transfer.py
trans2es/utils/topic_transfer.py
+1
-0
No files found.
trans2es/mapping/topic.json
View file @
e68270df
...
...
@@ -22,6 +22,7 @@
"create_time"
:{
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
"update_time"
:{
"type"
:
"date"
,
"format"
:
"date_time_no_millis"
},
"create_time_val"
:{
"type"
:
"long"
},
"update_time_val"
:{
"type"
:
"long"
}
"update_time_val"
:{
"type"
:
"long"
},
"language_type"
:{
"type"
:
"long"
}
}
}
\ No newline at end of file
trans2es/models/topic.py
View file @
e68270df
...
...
@@ -62,6 +62,7 @@ class Topic(models.Model):
is_online
=
models
.
BooleanField
(
verbose_name
=
u'是否上线'
)
is_deleted
=
models
.
BooleanField
(
verbose_name
=
u'是否删除'
)
content_level
=
models
.
CharField
(
verbose_name
=
u'内容等级'
,
max_length
=
3
)
language_type
=
models
.
IntegerField
(
verbose_name
=
u'语种类型'
)
create_time
=
models
.
DateTimeField
(
verbose_name
=
u'日记创建时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
update_time
=
models
.
DateTimeField
(
verbose_name
=
u'日记更新时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
...
...
trans2es/utils/topic_transfer.py
View file @
e68270df
...
...
@@ -39,6 +39,7 @@ class TopicTransfer(object):
res
[
"offline_score"
]
=
instance
.
get_topic_offline_score
()
res
[
"manual_score"
]
=
instance
.
drop_score
res
[
"has_image"
]
=
instance
.
topic_has_image
()
res
[
"language_type"
]
=
instance
.
language_type
create_time
=
instance
.
create_time
tzlc_create_time
=
tzlc
(
create_time
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment