Always download gravatar, there is no good way to check it without storing the etag and complicating things

projects
Domeniko Gentner 4 years ago
parent 9c122022f1
commit 87685c4a62
  1. 1
      labertasche/helper/__init__.py

@ -92,7 +92,6 @@ def check_gravatar(email: str):
response = requests.get(url)
if response.ok:
outfile = Path(f"{options['static_dir']}/{gravatar_hash}.jpg")
if not outfile.exists():
with outfile.open('wb') as fp:
response.raw.decode_content = True
for chunk in response:

Loading…
Cancel
Save