Skip to content

Commit 0856584

Browse files
committed
Fix file_path computation in BaseCodeElement to correctly join split paths
1 parent 0c73561 commit 0856584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codetide/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def file_path_without_suffix(self)->str:
2525
split_file_path = self.file_path.split(".")[:-1]
2626
if not split_file_path:
2727
split_file_path = [self.file_path]
28-
return "".join(split_file_path).replace("\\", ".").replace("/", ".")
28+
return ".".join(split_file_path).replace("\\", ".").replace("/", ".")
2929

3030
@computed_field
3131
def unique_id(self) -> str:

0 commit comments

Comments
 (0)