Skip to content

Commit

Permalink
changing HGNC modify date to exclude days to prevent excessive updates
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Jan 30, 2024
1 parent 49c59ea commit 329f091
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parsers/hgnc/src/loadHGNC.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ def get_latest_source_version(self) -> str:
:return: the data version
"""

data_puller = GetData()
data_file_date = data_puller.get_ftp_file_date(self.ftp_site, self.ftp_dir, self.data_files[0])
# HGNC files change very frequently, excluding the day makes sure we only update it once per month
data_file_date = data_puller.get_ftp_file_date(self.ftp_site,
self.ftp_dir,
self.data_files[0],
exclude_day=True)
return data_file_date

def get_data(self) -> int:
Expand Down

0 comments on commit 329f091

Please sign in to comment.