Skip to content

Commit 4fa1bae

Browse files
committed
Resolved all the issues related to check fails
1 parent f2bf05f commit 4fa1bae

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/arguments/search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def search_args(self):
4242
webbrowser.open(url)
4343
elif self.arguments.update:
4444
update = UpdateApplication(version)
45+
update.check_for_updates()
4546

4647
def search_for_results(self, save=False):
4748
queries = ["What do you want to search", "Tags"]

src/arguments/update.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import requests as requests
22
from termcolor import colored
3-
import sys as sys
43
import webbrowser as webbrowser
54

65
from .error import SearchError
76

87
class UpdateApplication(object):
98
def __init__(self, current_version):
9+
"""
10+
Check for updates in the application
11+
via github releases API
12+
"""
1013
self.current_version = current_version
11-
self.release_api_url = "https://api.github.com/repos/IndianOpenSourceFoundation/dynamic-cli/releases/latest"
12-
13-
self.check_for_updates()
14+
self.release_api_url = "https://api.github.com/repos/IndianOpenSourceFoundation/dynamic-cli/releases/latest
1415

1516
def check_for_updates(self):
1617
try:
@@ -30,3 +31,5 @@ def check_for_updates(self):
3031

3132
except Exception as exception:
3233
exception = SearchError(str(exception), "Try later")
34+
35+

0 commit comments

Comments
 (0)