Address review wrt/snake_case

pull/2191/head
Paul Pfeister 5 months ago
parent 33db232493
commit f9617d4f64
No known key found for this signature in database
GPG Key ID: 70D33A96CBD7A994

@ -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…
Cancel
Save