Commit 111b4401 authored by Sascha Herzinger's avatar Sascha Herzinger

fixing version request

parent db5d63d4
Pipeline #4880 passed with stages
in 14 minutes and 49 seconds
......@@ -7,3 +7,5 @@ tag = True
[bumpversion:file:docker/docker-compose.yml]
[bumpversion:file:fractalis/misc/controller.py]
......@@ -2,7 +2,6 @@
in any of the other categories."""
import logging
import re
from typing import Tuple
from flask import Blueprint, jsonify, Response
......@@ -14,7 +13,5 @@ logger = logging.getLogger(__name__)
@misc_blueprint.route('/version', methods=['GET'])
def get_version() -> Tuple[Response, int]:
with open('setup.py') as setup_file:
text = setup_file.read()
version = re.search(r'version=\'(\d+\.\d+\.\d+)\',', text).group(1)
version = '0.5.2'
return jsonify({'version': version}), 201
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment