File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import asyncio
2-
31from biothings .web .handlers import BaseHandler
42
53from nodenorm .version import get_version
@@ -9,6 +7,4 @@ class VersionHandler(BaseHandler):
97 name = "version"
108
119 async def get (self , * args , ** kwargs ):
12- loop = asyncio .get_running_loop ()
13- version = await loop .run_in_executor (None , get_version )
14- self .write ({"version" : version })
10+ self .write ({"version" : get_version ()})
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ def clear_version_caches():
88 nodenorm_version .get_github_commit_hash .cache_clear ()
99 nodenorm_version .get_version .cache_clear ()
1010 yield
11- nodenorm_version .get_github_commit_hash .cache_clear ()
12- nodenorm_version .get_version .cache_clear ()
1311
1412
1513def test_read_version_file_uses_configured_path (tmp_path , monkeypatch ):
You can’t perform that action at this time.
0 commit comments