Added assigning repo to installed modules to show readme

Close #1089
This commit is contained in:
Viktor De Pasquale
2019-12-13 15:18:47 +01:00
parent 3bda7cb26b
commit 89b1fa341b
4 changed files with 35 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ interface RepoBase {
@Query("SELECT * FROM repos WHERE id = :id AND versionCode > :versionCode LIMIT 1")
fun getUpdatableRepoById(id: String, versionCode: Int): Repo?
@Query("SELECT * FROM repos WHERE id = :id LIMIT 1")
fun getRepoById(id: String): Repo?
companion object {
const val LIMIT = 10
}