mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-21 19:33:02 +00:00
Address review wrt/snake_case
This commit is contained in:
parent
33db232493
commit
f9617d4f64
2 changed files with 8 additions and 8 deletions
|
@ -9,4 +9,4 @@ __shortname__ = "Sherlock"
|
|||
__longname__ = "Sherlock: Find Usernames Across Social Networks"
|
||||
__version__ = "0.15.0"
|
||||
|
||||
forgeApiLatestReleaseUrl = "https://api.github.com/repos/sherlock-project/sherlock/releases/latest"
|
||||
forge_api_latest_release = "https://api.github.com/repos/sherlock-project/sherlock/releases/latest"
|
||||
|
|
|
@ -25,7 +25,7 @@ from sherlock.__init__ import (
|
|||
__longname__,
|
||||
__shortname__,
|
||||
__version__,
|
||||
forgeApiLatestReleaseUrl,
|
||||
forge_api_latest_release,
|
||||
)
|
||||
|
||||
from sherlock.result import QueryStatus
|
||||
|
@ -668,14 +668,14 @@ def main():
|
|||
|
||||
# Check for newer version of Sherlock. If it exists, let the user know about it
|
||||
try:
|
||||
latestReleaseJsonRaw = requests.get(forgeApiLatestReleaseUrl).text
|
||||
latestReleaseJsonData = json_loads(latestReleaseJsonRaw)
|
||||
latestRemoteTag = latestReleaseJsonData["tag_name"]
|
||||
latest_release_raw = requests.get(forge_api_latest_release).text
|
||||
latest_release_json = json_loads(latest_release_raw)
|
||||
latest_remote_tag = latest_release_json["tag_name"]
|
||||
|
||||
if latestRemoteTag[1:] != __version__:
|
||||
if latest_remote_tag[1:] != __version__:
|
||||
print(
|
||||
f"Update available! {__version__} --> {latestRemoteTag[1:]}"
|
||||
f"\n{latestReleaseJsonData['html_url']}"
|
||||
f"Update available! {__version__} --> {latest_remote_tag[1:]}"
|
||||
f"\n{latest_release_json['html_url']}"
|
||||
)
|
||||
|
||||
except Exception as error:
|
||||
|
|
Loading…
Reference in a new issue