Updated upload_year_truncated

This commit is contained in:
lunosdev 2022-08-18 19:49:41 -04:00 committed by GitHub
parent 2a666ef70b
commit 15d8fd620f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ class EntryVariables(SourceVariables):
int int
The last two digits of the upload year, i.e. 22 in 2022 The last two digits of the upload year, i.e. 22 in 2022
""" """
return int(self.upload_date[:2]) return int(self.upload_date[-2:])
@property @property
def upload_month_padded(self) -> str: def upload_month_padded(self) -> str: