File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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" ]
Original file line number Diff line number Diff line change 11import requests as requests
22from termcolor import colored
3- import sys as sys
43import webbrowser as webbrowser
54
65from .error import SearchError
76
87class 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+
You can’t perform that action at this time.
0 commit comments