From ffa1a48dc2d63241f40222e39b24d22a33d89c70 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 30 May 2021 17:16:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20experimental=20features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_backend/routes/repository/repositories.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/nest_backend/routes/repository/repositories.py b/nest_backend/routes/repository/repositories.py index d66af95..0ca9b60 100644 --- a/nest_backend/routes/repository/repositories.py +++ b/nest_backend/routes/repository/repositories.py @@ -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