]> git.scottworley.com Git - paperdoorknob/blobdiff - fetch.py
Apply bare-\emph fix to \st too
[paperdoorknob] / fetch.py
index 151e2a981eca71b2d07e8b7713a687fd7748de5a..e998394445196fcf677766a78cd3805d6b241bd1 100644 (file)
--- a/fetch.py
+++ b/fetch.py
@@ -13,9 +13,11 @@ from typing import IO, Iterator
 import requests
 import requests_cache
 
+from version import paperdoorknob_version
 
-_headers = {
-    'User-Agent': 'paperdoorknob/0.0.1 (https://git.scottworley.com/paperdoorknob/)'}
+
+_headers = {'User-Agent': f'paperdoorknob/{paperdoorknob_version} ' +
+            '(https://git.scottworley.com/paperdoorknob/)'}
 
 
 class Fetcher(ABC):