change line length

This commit is contained in:
Antonio J. Delgado 2022-05-30 11:12:13 +03:00
parent 68aacc1926
commit 7115cacbcb

View file

@ -131,8 +131,10 @@ class image_classifier:
self._log.error(f"Failed to convert EXIF information about date '{original_date}'.") self._log.error(f"Failed to convert EXIF information about date '{original_date}'.")
folder_date = 'unknown-time' folder_date = 'unknown-time'
if folder_date == 'unknown-time': if folder_date == 'unknown-time':
match = re.search(r'(?P<year>20[0-9]{2})[\-/\._]?\ match = re.search(
(?P<month>[0-1]?[0-9])[\-/\._]?(?P<day>[0-3]?[0-9])', filename) r'(?P<year>20[0-9]{2})[\-/\._]?(?P<month>[0-1]?[0-9])[\-/\._]?(?P<day>[0-3]?[0-9])',
filename
)
if match: if match:
folder_date = f"{match.group('year')}.{match.group('month')}.\ folder_date = f"{match.group('year')}.{match.group('month')}.\
{match.group('day')}" {match.group('day')}"