Skip to content

Commit

Permalink
enabled gcd to read tar balls
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Dec 17, 2024
1 parent a9ad4e7 commit 1aaa110
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions converter_app/readers/gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def check(self):
"""
:return: True if it fits
"""
if self.is_tar_ball:
self.file = next((x for x in self.file_content if x.name.lower().endswith('.gcd.txt')), None)
if self.file is None:
return False

result = self.file.suffix.lower() == '.txt'
if result:
self.lines = self._parse_input()
Expand Down

0 comments on commit 1aaa110

Please sign in to comment.