1
Fork 0
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:
Steffo 2021-05-30 17:16:59 +02:00
parent 4b629dbdd4
commit ffa1a48dc2
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -5,15 +5,6 @@ from nest_backend.gestione import *
import datetime import datetime
from flask_cors import cross_origin from flask_cors import cross_origin
import nest_backend.errors as errors 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() @cross_origin()
@ -114,9 +105,4 @@ def page_repositories():
repository.is_active = True repository.is_active = True
repository.start = datetime.datetime.now() repository.start = datetime.datetime.now()
ext.session.commit() 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 return json_success(repository.to_json()), 201