Address review wrt/snake_case

This commit is contained in:
Paul Pfeister 2024-07-08 01:30:32 -04:00
parent 33db232493
commit f9617d4f64
No known key found for this signature in database
GPG key ID: 70D33A96CBD7A994
2 changed files with 8 additions and 8 deletions

View file

@ -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"

View file

@ -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: