keep the iggy data index clean at line endings
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -75,6 +75,7 @@ def main() -> int:
|
||||
for platform in platforms
|
||||
for field in DATA_FIELDS
|
||||
)
|
||||
fieldnames.append("platforms")
|
||||
|
||||
args.output.parent.mkdir(parents=True, exist_ok=True)
|
||||
output_rows = 0
|
||||
@@ -99,6 +100,11 @@ def main() -> int:
|
||||
occurrence < len(by_platform.get(platform, ()))
|
||||
for platform in platforms
|
||||
),
|
||||
"platforms": ",".join(
|
||||
platform
|
||||
for platform in platforms
|
||||
if occurrence < len(by_platform.get(platform, ()))
|
||||
),
|
||||
}
|
||||
for platform in platforms:
|
||||
rows = by_platform.get(platform, ())
|
||||
|
||||
@@ -73,6 +73,7 @@ class MergeIggyDataSymbolsTests(unittest.TestCase):
|
||||
self.assertEqual([row["occurrence"] for row in states], ["1", "2"])
|
||||
self.assertEqual(states[1]["durango_defined_data_length"], "8")
|
||||
self.assertEqual(states[1]["platform_count"], "1")
|
||||
self.assertEqual(states[1]["platforms"], "durango")
|
||||
|
||||
def write_symbols(self, path, rows):
|
||||
with path.open("w", newline="", encoding="utf-8") as handle:
|
||||
|
||||
Reference in New Issue
Block a user