We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a139f commit 0c73561Copy full SHA for 0c73561
1 file changed
codetide/core/models.py
@@ -22,7 +22,10 @@ def apply_second_line_indent_to_first(cls, value):
22
23
@property
24
def file_path_without_suffix(self)->str:
25
- return "".join(self.file_path.split(".")[:-1]).replace("\\", ".").replace("/", ".")
+ split_file_path = self.file_path.split(".")[:-1]
26
+ if not split_file_path:
27
+ split_file_path = [self.file_path]
28
+ return "".join(split_file_path).replace("\\", ".").replace("/", ".")
29
30
@computed_field
31
def unique_id(self) -> str:
0 commit comments