File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 77 "Content-Type" : "application/x-www-form-urlencoded"
88}
99
10-
1110API_ENDPOINT_UOA = "https://api.github.com/repos/RandomCoderOrg/ubuntu-on-android/releases"
1211resp_uoa = requests .get (API_ENDPOINT_UOA , headers = headers )
1312Json_data2 = json .loads (resp_uoa .text )
1413
15- uV = Json_data2 [0 ]['tag_name' ]
1614# uV = ["v3.1-alpha"][0] # For testing
17- udroid_version = uV .replace ("v" ,"" )
18-
15+ udroid_version = Json_data2 [0 ]['tag_name' ].replace ("v" ,"" )
1916
2017API_ENDPOINT_UA = "https://api.github.com/repos/RandomCoderOrg/udroid-download/releases"
2118resp_ud = requests .get (API_ENDPOINT_UA , headers = headers )
2219Json_data = json .loads (resp_ud .text )
23- dr = Json_data [0 ]['tag_name' ]
2420
2521
26- match = re .compile (r'V(\d+)(\D+)(\d+)' ).findall (dr )
22+ match = re .compile (r'V(\d+)(\D+)(\d+)' ).findall (Json_data [ 0 ][ 'tag_name' ] )
2723_ , RELEASE_TYPE , IterationNumber = match [0 ]
2824IterationNumber = int (IterationNumber ) + 1
2925
You can’t perform that action at this time.
0 commit comments