mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Include forked repos in github search. (#8426)
* Include forked repos in github search. * Include forked repos in github search, the right way.
This commit is contained in:
parent
29decb5f67
commit
f201799a0f
@ -231,7 +231,7 @@ object Github {
|
|||||||
fun tryGetGithubReposWithTopic(amountPerPage:Int, page:Int, searchRequest: String = ""): RepoSearch? {
|
fun tryGetGithubReposWithTopic(amountPerPage:Int, page:Int, searchRequest: String = ""): RepoSearch? {
|
||||||
// Add + here to separate the query text from its parameters
|
// Add + here to separate the query text from its parameters
|
||||||
val searchText = if (searchRequest != "") "$searchRequest+" else ""
|
val searchText = if (searchRequest != "") "$searchRequest+" else ""
|
||||||
val link = "https://api.github.com/search/repositories?q=${searchText}topic:unciv-mod&sort:stars&per_page=$amountPerPage&page=$page"
|
val link = "https://api.github.com/search/repositories?q=${searchText}%20topic:unciv-mod%20fork:true&sort:stars&per_page=$amountPerPage&page=$page"
|
||||||
var retries = 2
|
var retries = 2
|
||||||
while (retries > 0) {
|
while (retries > 0) {
|
||||||
retries--
|
retries--
|
||||||
|
Loading…
x
Reference in New Issue
Block a user