sgf-parser 0.0.1b2__tar.gz → 0.0.1b3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sgf-parser
3
- Version: 0.0.1b2
3
+ Version: 0.0.1b3
4
4
  Summary: Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format
5
5
  Home-page: https://github.com/norwegian-geotechnical-institute/sgf-parser
6
6
  License: MIT
@@ -15,7 +15,7 @@ exclude = '''
15
15
 
16
16
  [tool.poetry]
17
17
  name = "sgf-parser"
18
- version = "0.0.1b2"
18
+ version = "0.0.1b3"
19
19
  description = "Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format"
20
20
  license = "MIT"
21
21
  authors = ["Jostein Leira <jostein@leira.net>"]
@@ -57,11 +57,11 @@ class MethodData(BaseModel, abc.ABC):
57
57
  _code, _rest = cls._extract_comment_code(data)
58
58
  data["K"] = _code
59
59
  if _rest:
60
- if data["T"]:
61
- data["T"] = f"{_rest}, {data['T']}"
62
- else:
60
+ if "T" not in data:
63
61
  data["T"] = _rest
64
-
62
+ else:
63
+ data["T"] = f"{_rest}, {data['T']}"
64
+
65
65
  return data
66
66
 
67
67
  # "K": "comment_code", # "comment_code"
File without changes
File without changes