Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "codeplag"
version = "0.6.3"
version = "0.6.4"
description = "Code plagiarism searching package."
authors = [
{ name = "Artyom Semidolin, Dmitry Nikolaev, Alexander Evsikov" }
Expand Down
6 changes: 3 additions & 3 deletions src/webparsers/github_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ def _get_files_generator_from_node_list(
) -> Iterator[WorkInfo]:
for node in node_list:
current_path = f"/{node['path']}"
full_link = (
f"{_GH_URL}{dir_url.owner}/{dir_url.repo}/tree/{dir_url.branch}/{current_path[2:]}"
)
node_type = node["type"]
if node_type == "dir":
commit_info = self._get_commit_info(
Expand All @@ -320,6 +317,9 @@ def _get_files_generator_from_node_list(
path=current_path,
path_regexp=path_regexp,
)
full_link = (
f"{_GH_URL}{dir_url.owner}/{dir_url.repo}/blob/{dir_url.branch}{current_path}"
)
if (
node_type != "file"
or not self._is_accepted_extension(node["name"])
Expand Down
2 changes: 1 addition & 1 deletion test/auto/functional/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_compare_cpp_files(cmd: list[str], out: bytes, found_plag: bool):
),
(
["--github-urls", *PY_GITHUB_FILES, PY_GITHUB_DIR],
b"Getting works features from GitHub urls",
b"Getting works features from",
False,
),
(
Expand Down
Loading