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
alpha
physical
Commits
d67286cd
Commit
d67286cd
authored
Mar 21, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Plain Diff
add
parents
ca7bd328
7e535add
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
148 additions
and
58 deletions
+148
-58
workspace.xml
.idea/workspace.xml
+147
-57
topic_transfer.py
trans2es/utils/topic_transfer.py
+1
-1
No files found.
.idea/workspace.xml
View file @
d67286cd
...
...
@@ -64,24 +64,24 @@
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.open"
>
<counts>
<entry
key=
"json"
value=
"
7
"
/>
<entry
key=
"py"
value=
"6
7
"
/>
<entry
key=
"json"
value=
"
8
"
/>
<entry
key=
"py"
value=
"6
9
"
/>
<entry
key=
"template"
value=
"3"
/>
<entry
key=
"xml"
value=
"1"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.open"
>
<counts>
<entry
key=
"JSON"
value=
"
7
"
/>
<entry
key=
"JSON"
value=
"
8
"
/>
<entry
key=
"PLAIN_TEXT"
value=
"3"
/>
<entry
key=
"Python"
value=
"6
7
"
/>
<entry
key=
"Python"
value=
"6
9
"
/>
<entry
key=
"XML"
value=
"1"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<counts>
<entry
key=
"json"
value=
"56"
/>
<entry
key=
"py"
value=
"8
63
"
/>
<entry
key=
"py"
value=
"8
88
"
/>
<entry
key=
"template"
value=
"5"
/>
</counts>
</usages-collector>
...
...
@@ -89,7 +89,7 @@
<counts>
<entry
key=
"JSON"
value=
"56"
/>
<entry
key=
"PLAIN_TEXT"
value=
"5"
/>
<entry
key=
"Python"
value=
"8
63
"
/>
<entry
key=
"Python"
value=
"8
88
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -99,7 +99,11 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/search/views/topic.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<<<<<<
< HEAD
<state
relative-caret-position=
"15"
>
=======
<state
relative-caret-position=
"823"
>
>>>>>>> huabao
<caret
line=
"103"
column=
"37"
selection-start-line=
"103"
selection-start-column=
"32"
selection-end-line=
"103"
selection-end-column=
"37"
/>
<folding>
<element
signature=
"e#466#1607#0"
/>
...
...
@@ -121,24 +125,38 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
search/utils/group
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
trans2es/type_info
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1170
"
>
<caret
line=
"
115"
column=
"21"
selection-start-line=
"115"
selection-start-column=
"21"
selection-end-line=
"115"
selection-end-column=
"21
"
/>
<state
relative-caret-position=
"
265
"
>
<caret
line=
"
337"
column=
"24"
selection-start-line=
"337"
selection-start-column=
"24"
selection-end-line=
"337"
selection-end-column=
"24
"
/>
<folding>
<element
signature=
"e#
218#1347#0
"
/>
<element
signature=
"e#
15#87#0"
expanded=
"true
"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/
type_info
.py"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/
models/pictorial
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<<<<<<
< HEAD
<state
relative-caret-position=
"307"
>
<caret
line=
"264"
column=
"36"
lean-forward=
"true"
selection-start-line=
"264"
selection-start-column=
"36"
selection-end-line=
"264"
selection-end-column=
"36"
/>
=======
<state>
<caret
line=
"31"
column=
"4"
selection-start-line=
"31"
selection-start-column=
"4"
selection-end-line=
"31"
selection-end-column=
"4"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/utils/pictorial_transfer.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"322"
>
<caret
line=
"28"
column=
"48"
lean-forward=
"true"
selection-start-line=
"28"
selection-start-column=
"48"
selection-end-line=
"28"
selection-end-column=
"48"
/>
>>>>>>> huabao
<folding>
<element
signature=
"e#
15#87
#0"
expanded=
"true"
/>
<element
signature=
"e#
46#55
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
@@ -147,8 +165,13 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/mapping/topic.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<<<<<<
< HEAD
<state
relative-caret-position=
"215"
>
<caret
line=
"24"
column=
"16"
selection-start-line=
"24"
selection-start-column=
"5"
selection-end-line=
"24"
selection-end-column=
"16"
/>
=======
<state
relative-caret-position=
"319"
>
<caret
line=
"27"
column=
"36"
lean-forward=
"true"
selection-start-line=
"27"
selection-start-column=
"36"
selection-end-line=
"27"
selection-end-column=
"36"
/>
>>>>>>> huabao
</state>
</provider>
</entry>
...
...
@@ -156,8 +179,13 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/utils/topic_transfer.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<<<<<<
< HEAD
<state
relative-caret-position=
"1068"
>
<caret
line=
"75"
column=
"19"
lean-forward=
"true"
selection-start-line=
"75"
selection-start-column=
"19"
selection-end-line=
"75"
selection-end-column=
"19"
/>
=======
<state
relative-caret-position=
"1129"
>
<caret
line=
"88"
column=
"48"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"48"
selection-end-line=
"88"
selection-end-column=
"48"
/>
>>>>>>> huabao
<folding>
<element
signature=
"e#46#55#0"
expanded=
"true"
/>
</folding>
...
...
@@ -168,7 +196,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/trans2es/models/topic.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1230
"
>
<state
relative-caret-position=
"
698
"
>
<caret
line=
"98"
column=
"80"
selection-start-line=
"98"
selection-start-column=
"12"
selection-end-line=
"98"
selection-end-column=
"80"
/>
<folding>
<element
signature=
"e#46#118#0"
expanded=
"true"
/>
...
...
@@ -178,10 +206,10 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
injection/data_sync/tasks.py
"
>
<entry
file=
"file://$PROJECT_DIR$/
trans2es/mapping/pictorial.json
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
18
0"
>
<caret
line=
"
22"
column=
"22"
selection-start-line=
"22"
selection-start-column=
"22"
selection-end-line=
"22"
selection-end-column=
"38
"
/>
<state
relative-caret-position=
"
24
0"
>
<caret
line=
"
16"
column=
"1"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"1"
selection-end-line=
"16"
selection-end-column=
"1
"
/>
</state>
</provider>
</entry>
...
...
@@ -246,7 +274,6 @@
<option
value=
"$PROJECT_DIR$/trans2es/utils/user_transfer.py"
/>
<option
value=
"$PROJECT_DIR$/trans2es/models/user.py"
/>
<option
value=
"$PROJECT_DIR$/trans2es/management/commands/trans2es_data2es_parallel.py"
/>
<option
value=
"$PROJECT_DIR$/trans2es/utils/topic_transfer.py"
/>
<option
value=
"$PROJECT_DIR$/search/views/topic.py"
/>
<option
value=
"$PROJECT_DIR$/search/views/group.py"
/>
<option
value=
"$PROJECT_DIR$/search/utils/topic.py"
/>
...
...
@@ -254,11 +281,16 @@
<option
value=
"$PROJECT_DIR$/search/utils/group.py"
/>
<option
value=
"$PROJECT_DIR$/trans2es/models/topic.py"
/>
<option
value=
"$PROJECT_DIR$/trans2es/mapping/topic.json"
/>
<option
value=
"$PROJECT_DIR$/trans2es/utils/topic_transfer.py"
/>
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
>
<<<<<<
< HEAD
<option
name=
"x"
value=
"-89"
/>
=======
<option
name=
"x"
value=
"-56"
/>
>>>>>>> huabao
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1920"
/>
<option
name=
"height"
value=
"724"
/>
...
...
@@ -363,7 +395,11 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<<<<<<
< HEAD
<frame
x=
"-89"
y=
"23"
width=
"1920"
height=
"724"
extended-state=
"0"
/>
=======
<frame
x=
"-56"
y=
"23"
width=
"1920"
height=
"724"
extended-state=
"0"
/>
>>>>>>> huabao
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.18114798"
/>
...
...
@@ -379,7 +415,11 @@
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"8"
/>
<<<<<<
< HEAD
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"9"
visible=
"true"
weight=
"0.56978655"
/>
=======
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"9"
visible=
"true"
weight=
"0.0"
/>
>>>>>>> huabao
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"11"
side_tool=
"true"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
...
...
@@ -443,26 +483,9 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/mapping/pictorial.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"240"
>
<caret
line=
"16"
column=
"1"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"1"
selection-end-line=
"16"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/management/commands/trans2es_mapping2es.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/utils/pictorial_transfer.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"480"
>
<caret
line=
"32"
column=
"49"
lean-forward=
"true"
selection-start-line=
"32"
selection-start-column=
"49"
selection-end-line=
"32"
selection-end-column=
"49"
/>
<folding>
<element
signature=
"e#46#55#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/models/face_user_contrast_similar.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"240"
>
...
...
@@ -498,13 +521,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/models/pictorial.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"548"
>
<caret
line=
"65"
selection-start-line=
"65"
selection-end-line=
"65"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/models/group.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
...
...
@@ -594,13 +610,7 @@
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/physical/celery.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<folding>
<element
signature=
"e#0#56#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/physical/celery_task_router.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -633,8 +643,10 @@
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/search/utils/group.py"
>
<<<<<<
< HEAD
=======
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
170
"
>
<state
relative-caret-position=
"1
47
"
>
<caret
line=
"115"
column=
"21"
selection-start-line=
"115"
selection-start-column=
"21"
selection-end-line=
"115"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#218#1347#0"
/>
...
...
@@ -642,9 +654,84 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/injection/data_sync/tasks.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"180"
>
<caret
line=
"22"
column=
"22"
selection-start-line=
"22"
selection-start-column=
"22"
selection-end-line=
"22"
selection-end-column=
"38"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/search/utils/topic.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1290"
>
<caret
line=
"94"
column=
"8"
selection-start-line=
"94"
selection-start-column=
"8"
selection-end-line=
"94"
selection-end-column=
"8"
/>
<folding>
<element
signature=
"e#47#61#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/search/views/group.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"510"
>
<caret
line=
"42"
column=
"16"
lean-forward=
"true"
selection-start-line=
"42"
selection-start-column=
"16"
selection-end-line=
"42"
selection-end-column=
"16"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/mapping/topic.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"319"
>
<caret
line=
"27"
column=
"36"
lean-forward=
"true"
selection-start-line=
"27"
selection-start-column=
"36"
selection-end-line=
"27"
selection-end-column=
"36"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/search/views/topic.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"823"
>
<caret
line=
"103"
column=
"37"
selection-start-line=
"103"
selection-start-column=
"32"
selection-end-line=
"103"
selection-end-column=
"37"
/>
<folding>
<element
signature=
"e#466#1607#0"
/>
<element
signature=
"e#7074#7716#0"
/>
<element
signature=
"e#7816#8386#0"
/>
<element
signature=
"e#8511#9086#0"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/mapping/pictorial.json"
>
>>>>>>> huabao
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"240"
>
<caret
line=
"16"
column=
"1"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"1"
selection-end-line=
"16"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<<<<<<
< HEAD
=======
<entry
file=
"file://$PROJECT_DIR$/trans2es/type_info.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"265"
>
<caret
line=
"337"
column=
"24"
selection-start-line=
"337"
selection-start-column=
"24"
selection-end-line=
"337"
selection-end-column=
"24"
/>
<folding>
<element
signature=
"e#15#87#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/trans2es/utils/pictorial_transfer.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"322"
>
<caret
line=
"28"
column=
"48"
lean-forward=
"true"
selection-start-line=
"28"
selection-start-column=
"48"
selection-end-line=
"28"
selection-end-column=
"48"
/>
<folding>
<element
signature=
"e#46#55#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
>>>>>>> huabao
<entry
file=
"file://$PROJECT_DIR$/trans2es/models/topic.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1230
"
>
<state
relative-caret-position=
"
698
"
>
<caret
line=
"98"
column=
"80"
selection-start-line=
"98"
selection-start-column=
"12"
selection-end-line=
"98"
selection-end-column=
"80"
/>
<folding>
<element
signature=
"e#46#118#0"
expanded=
"true"
/>
...
...
@@ -652,23 +739,24 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
injection/data_sync/tasks
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
trans2es/models/pictorial
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"180"
>
<caret
line=
"
22"
column=
"22"
selection-start-line=
"22"
selection-start-column=
"22"
selection-end-line=
"22"
selection-end-column=
"38
"
/>
<state>
<caret
line=
"
31"
column=
"4"
selection-start-line=
"31"
selection-start-column=
"4"
selection-end-line=
"31"
selection-end-column=
"4
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
search/utils/topic
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
trans2es/utils/topic_transfer
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
290
"
>
<caret
line=
"
94"
column=
"8"
selection-start-line=
"94"
selection-start-column=
"8"
selection-end-line=
"94"
selection-end-column=
"
8"
/>
<state
relative-caret-position=
"1
129
"
>
<caret
line=
"
88"
column=
"48"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"48"
selection-end-line=
"88"
selection-end-column=
"4
8"
/>
<folding>
<element
signature=
"e#4
7#61
#0"
expanded=
"true"
/>
<element
signature=
"e#4
6#55
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<<<<<<
< HEAD
<entry
file=
"file://$PROJECT_DIR$/trans2es/mapping/topic.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"215"
>
...
...
@@ -716,6 +804,8 @@
</state>
</provider>
</entry>
=======
>>>>>>> huabao
</component>
<component
name=
"masterDetails"
>
<states>
...
...
trans2es/utils/topic_transfer.py
View file @
d67286cd
...
...
@@ -92,7 +92,7 @@ class TopicTransfer(object):
update_time
=
instance
.
update_time
tzlc_update_time
=
tzlc
(
update_time
)
res
[
"update_time"
]
=
tzlc_update_time
#
res["update_time"] = tzlc_update_time
res
[
"update_time_val"
]
=
int
(
time
.
mktime
(
tzlc_update_time
.
timetuple
()))
logging
.
info
(
"test topic transfer time cost,time0:
%
d,time1:
%
d,time2:
%
d,time3:
%
d,time4:
%
d"
%
(
time0
,
time1
,
time2
,
time3
,
time4
))
...
...
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