mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-18 09:07:40 +00:00
move current commit hash to its own file
This commit is contained in:
@@ -547,3 +547,11 @@ def check_unrar(unrarLocation):
|
||||
error=True
|
||||
return (error, version)
|
||||
|
||||
def is_sha1(sha1):
|
||||
if len(sha1) != 40:
|
||||
return False
|
||||
try:
|
||||
temp = int(sha1, 16)
|
||||
except ValueError:
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user