Skip to content

Commit

Permalink
fix sniff, fix dynamic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalGawor committed Oct 3, 2024
1 parent a44b5c0 commit 722f669
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dogapi/dogapi/views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def sniff(request: Request) -> Response:

try:
pids = parse_queryparam(request, "pid")
sniff_result = {pid: asdict(dog.sniff(pid)) for pid in pids}
sniff_result = {pid: dog.sniff(pid) for pid in pids}

if sniff_result:
ret = Response(sniff_result, status=200)
Expand Down
5 changes: 2 additions & 3 deletions dogui/dogui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __init__(self, pid: str, taxonomy_dict: dict):
for child_id in taxonomy_dict[pid]["children"]:
self.children.append(TaxonomyNode(child_id, taxonomy_dict))
self.has_children = self._has_children()
asd
def _has_children(self) -> bool:asd
return True if self.children else False

def _has_children(self) -> bool:
return True if self.children else False
4 changes: 2 additions & 2 deletions dogui/dogui/views_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def home(request: HttpRequest) -> HttpResponse:
# api_url += "&use_dtr=" + use_dtr

api_response = requests.get(api_url, verify=settings.VERIFY_SSL)
logging.critical("API RESPONSE")
logging.critical(api_response)
if functionality == 'expanddatatype':
logging.critical("API RESPONSE")
logging.critical(api_response)
taxonomy_tree = TaxonomyTree(api_response.json())
context.push({"taxonomy_tree": taxonomy_tree})
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ homepage = ""
repository = "https://github.com/clarin-eric/DOGapp/"

[tool.poetry.dependencies]
doglib = { url = "https://github.com/clarin-eric/DOGlib/releases/download/1.0.9/doglib-1.0.9-py3-none-any.whl" }
doglib = { url = "https://github.com/clarin-eric/DOGlib/releases/download/1.0.10-a1/doglib-1.0.10a1-py3-none-any.whl" }
Django = '4.2.15'
django-cors-headers = '4.4.0'
django-debug-toolbar = '4.4.6'
Expand Down

0 comments on commit 722f669

Please sign in to comment.