diff --git a/app/grew/controller.py b/app/grew/controller.py index a6e4f7b..ab0ef8a 100644 --- a/app/grew/controller.py +++ b/app/grew/controller.py @@ -40,11 +40,9 @@ def post(self, project_name: str): parser.add_argument(name="pattern", type=str) parser.add_argument(name="rewriteCommands", type=str) args = parser.parse_args() - print("KK args", args) pattern = args.get("pattern") rewriteCommands = args.get("rewriteCommands") # tryRule( project_id, [ sample_id], [ user_id], pattern, commands) - print("KK", project_name, pattern, rewriteCommands) reply = grew_request( "tryRule", current_app, @@ -54,7 +52,6 @@ def post(self, project_name: str): "commands": rewriteCommands, }, ) - print("KK reply", reply) if reply["status"] != "OK": if "message" in reply: diff --git a/app/projects/controller.py b/app/projects/controller.py index cbd6d2d..b5f10f4 100644 --- a/app/projects/controller.py +++ b/app/projects/controller.py @@ -41,7 +41,6 @@ def get(self) -> List[ProjectExtendedInterface]: # if len(grewnames ^ dbnames) > 0: # projects_info["difference"] = True for project in projects: - print("KK bla") dumped_project: ProjectExtendedInterface = ProjectSchema().dump(project) if dumped_project["project_name"] not in common: continue diff --git a/app/samples/controller.py b/app/samples/controller.py index 6ed672f..e0fd4e8 100644 --- a/app/samples/controller.py +++ b/app/samples/controller.py @@ -170,9 +170,7 @@ def post(self, project_name: str): # {"sent_id_1":{"conlls":{"user_1":"conllstring"}}} sample_tree = SampleExportService.servSampleTrees(reply.get("data", {})) sample_content = SampleExportService.sampletree2contentfile(sample_tree) - print("KK sample_tree", sample_tree) for sent_id in sample_tree: - print("KK sent_id", sent_id) last = SampleExportService.get_last_user( sample_tree[sent_id]["conlls"] ) diff --git a/app/samples/service.py b/app/samples/service.py index 315350f..e64d942 100644 --- a/app/samples/service.py +++ b/app/samples/service.py @@ -228,7 +228,6 @@ def delete_by_sample_name(project_id: int, sample_name: str): .all() ) for role in roles: - print("KK role", role) db.session.delete(role) db.session.commit() diff --git a/app/trees/controller.py b/app/trees/controller.py index f3f0413..5405866 100644 --- a/app/trees/controller.py +++ b/app/trees/controller.py @@ -30,7 +30,7 @@ def get(self, projectName: str, sampleName: str): abort(404) samples = reply.get("data", {}) - ProjectAccessService.require_access_level(project.id, 2) + # ProjectAccessService.require_access_level(project.id, 2) ##### exercise mode block ##### exercise_mode = project.exercise_mode project_access: int = 0 @@ -92,8 +92,6 @@ def post(self, projectName: str, sampleName: str): conll = args.conll sent_id = args.sent_id - print("KK saving", sample_name, sent_id) - if not conll: abort(400) @@ -114,7 +112,6 @@ def post(self, projectName: str, sampleName: str): data=data ) resp = reply - print("KK resp", resp) if resp["status"] != "OK": if "data" in resp: response = {'status': 400, 'message': str(resp["data"])} diff --git a/arborator-backend.ini b/arborator-backend.ini new file mode 100644 index 0000000..93d9f85 --- /dev/null +++ b/arborator-backend.ini @@ -0,0 +1,15 @@ +[uwsgi] +module = wsgi:app + +master = true +processes = 5 + +socket = arborator-backend.sock +chmod-socket = 660 +vacuum = true + +die-on-term = true +limit-as = 512 + +#location of log files +logto = /var/log/arborator-backend/%n.log diff --git a/config.ini b/config.ini deleted file mode 100644 index fd17c54..0000000 --- a/config.ini +++ /dev/null @@ -1,13 +0,0 @@ -[uwsgi] -module = wsgi:app - -master = true -processes = 5 - -socket = flask_api_example.sock -chmod-socket = 660 -vacuum = true - -die-on-term = true - -/var/www/flask_api_example \ No newline at end of file