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
3ae7ba0b
Commit
3ae7ba0b
authored
Mar 15, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
51ffb9ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
trans2es_mapping2es.py
trans2es/management/commands/trans2es_mapping2es.py
+0
-14
face_user_contrast_similar.py
trans2es/models/face_user_contrast_similar.py
+0
-3
No files found.
trans2es/management/commands/trans2es_mapping2es.py
View file @
3ae7ba0b
...
...
@@ -37,7 +37,6 @@ class Command(BaseCommand):
for
type_name
in
type_name_list
:
if
len
(
options
[
"type"
]):
<<<<<<<
HEAD
if
options
[
"type"
]
==
"all"
or
type_name
==
options
[
"type"
]:
official_index_name
=
ESPerform
.
get_official_index_name
(
type_name
)
index_exists
=
es_cli
.
indices
.
exists
(
official_index_name
)
...
...
@@ -47,20 +46,7 @@ class Command(BaseCommand):
ESPerform
.
put_index_mapping
(
es_cli
,
type_name
)
else
:
logging
.
warning
(
"index:[
%
s] has already existing!"
%
type_name
)
=======
if
type_name
==
options
[
"type"
]:
# ESPerform.put_index_mapping(es_cli, type_name, force_sync=True)
official_index_name
=
ESPerform
.
get_official_index_name
(
type_name
)
index_exists
=
es_cli
.
indices
.
exists
(
official_index_name
)
if
not
index_exists
:
logging
.
info
(
"begin create [
%
s] index!"
%
type_name
)
ESPerform
.
create_index
(
es_cli
,
type_name
)
logging
.
info
(
"begin create [
%
s] mapping!"
%
type_name
)
ESPerform
.
put_index_mapping
(
es_cli
,
type_name
,
force_sync
=
True
)
>>>>>>>
homeq
if
len
(
options
[
"indices_template"
]):
template_file_name
=
options
[
"indices_template"
]
...
...
trans2es/models/face_user_contrast_similar.py
View file @
3ae7ba0b
...
...
@@ -27,8 +27,6 @@ class FaceUserContrastSimilar(models.Model):
create_time
=
models
.
DateTimeField
(
verbose_name
=
u'创建时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
update_time
=
models
.
DateTimeField
(
verbose_name
=
u'更新时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
contrast_user_id
=
models
.
IntegerField
(
verbose_name
=
u'对照者用户ID'
)
<<<<<<<
HEAD
=======
class
UserSimilarScore
(
models
.
Model
):
...
...
@@ -45,4 +43,3 @@ class UserSimilarScore(models.Model):
update_time
=
models
.
DateTimeField
(
verbose_name
=
u'更新时间'
,
default
=
datetime
.
datetime
.
fromtimestamp
(
0
))
>>>>>>>
homeq
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