Skip to content

Commit

Permalink
remove log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed May 10, 2024
1 parent 4dbcc06 commit 11aa004
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/gypsum_client/fetch_metadata_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ def fetch_metadata_database(
old_lastmod = float(old_lastmod_raw[0])
new_lastmod = get_last_modified_date(base_url)

print(old_lastmod, new_lastmod)

if new_lastmod is not None and old_lastmod == new_lastmod:
return cache_path

print("why is it here")
print(cache_path)
_lock = FileLock(cache_path)
with _lock:
mod_path = cache_path + ".modified"
Expand Down
2 changes: 0 additions & 2 deletions tests/test_fetch_metadata_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def test_fetch_metadata_database():
_cache_dir = tempfile.mkdtemp()

path = fetch_metadata_database(cache_dir=_cache_dir)
print(path)
assert os.path.getsize(path) > 0
assert isinstance(LAST_CHECK["req_time"], float)
assert not isinstance(LAST_CHECK["req_time"], bool)
Expand All @@ -26,7 +25,6 @@ def test_fetch_metadata_database():
f.write("FOO_BAR")

path2 = fetch_metadata_database(cache_dir=_cache_dir)
print(path2, "oath2")
assert path == path2

assert open(path).read().strip() == "FOO_BAR"

0 comments on commit 11aa004

Please sign in to comment.