mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
🔧 Remove experimental features
This commit is contained in:
parent
4b629dbdd4
commit
ffa1a48dc2
1 changed files with 0 additions and 14 deletions
|
@ -5,15 +5,6 @@ from nest_backend.gestione import *
|
|||
import datetime
|
||||
from flask_cors import cross_origin
|
||||
import nest_backend.errors as errors
|
||||
from nest_crawler.repo_search import search_repo_conditions
|
||||
|
||||
import threading
|
||||
|
||||
|
||||
def tweet_importer(rid):
|
||||
import nest_backend.app
|
||||
with nest_backend.app.app.app_context():
|
||||
search_repo_conditions(rid)
|
||||
|
||||
|
||||
@cross_origin()
|
||||
|
@ -114,9 +105,4 @@ def page_repositories():
|
|||
repository.is_active = True
|
||||
repository.start = datetime.datetime.now()
|
||||
ext.session.commit()
|
||||
try:
|
||||
thread = threading.Thread(target=tweet_importer, args=(repository.id,))
|
||||
thread.start()
|
||||
except Exception:
|
||||
return json_success(repository.to_json()), 201
|
||||
return json_success(repository.to_json()), 201
|
||||
|
|
Loading…
Reference in a new issue