Skip to content

Commit

Permalink
GTC-2977 Fix parsing of upload date
Browse files Browse the repository at this point in the history
  • Loading branch information
manukala6 committed Nov 18, 2024
1 parent c7a864f commit 823458f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN pip install . -t python
# to change the hash of the file and get TF to realize it needs to be
# redeployed. Ticket for a better solution:
# https://gfw.atlassian.net/browse/GTC-1250
# change 10
# change 11

RUN yum install -y zip geos-devel

Expand Down
4 changes: 2 additions & 2 deletions src/datapump/sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,9 @@ def get_latest_release(self) -> Tuple[str, List[str]]:
)

# Example string: "Updated Sat Nov 9 13:43:05 2024-11-09 UTC"
upload_date = upload_date_text[-14:-4]
upload_date = upload_date_text[-15:-5]
LOGGER.info(f"Last DIST-Alert upload date: {upload_date}")
latest_release = f"v{upload_date.replace("-", "")}"
latest_release = f"v{upload_date.replace('-', '')}"

return latest_release, source_uris

Expand Down

0 comments on commit 823458f

Please sign in to comment.