fix tuple

This commit is contained in:
bkfox
2020-05-29 13:28:36 +02:00
parent b87581552f
commit c04c1f3a53
7 changed files with 89 additions and 122 deletions

View File

@ -54,9 +54,6 @@ class LogQuerySet(models.QuerySet):
@staticmethod
def _get_archive_path(station, date):
# note: station name is not included in order to avoid problems
# of retrieving archive when it changes
return os.path.join(
settings.AIRCOX_LOGS_ARCHIVES_DIR,
'{}_{}.log.gz'.format(date.strftime("%Y%m%d"), station.pk)