Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
A
alem-ru-clustering
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeldar Toktasynov
alem-ru-clustering
Commits
de47a44d
Commit
de47a44d
authored
Apr 18, 2022
by
Yeldar Toktasynov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed last_updated_date column
parent
a1da3ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.py
app.py
+2
-2
No files found.
app.py
View file @
de47a44d
...
...
@@ -105,7 +105,7 @@ def clustering_post(text):
logging
.
info
(
msg
=
f
"Start Update Similar Cluster DB"
)
session
.
query
(
Class_Table_Name
)
.
filter
(
Class_Table_Name
.
cluster_id
==
cluster_id
)
.
update
({
'centroid'
:
new_similar_centroid
,
'count'
:
DB_CLUSTER_COUNT
[
ids
]})
session
.
query
(
Class_Table_Name
)
.
filter
(
Class_Table_Name
.
cluster_id
==
cluster_id
)
.
update
({
'centroid'
:
new_similar_centroid
,
'count'
:
DB_CLUSTER_COUNT
[
ids
]
,
'last_update_date'
:
datetime
.
now
()
})
session
.
commit
()
DB_CENTROID_VECTORS
[
ids
]
=
new_similar_centroid
...
...
@@ -175,4 +175,4 @@ def service(body, message):
yield
output_document
if
__name__
==
'__main__'
:
app
.
run
()
\ No newline at end of file
app
.
run
()
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