Add debug function to reset viewer for all manga
This commit is contained in:
parent
102811f781
commit
a29ddaaf1c
@ -342,4 +342,20 @@ object DebugFunctions {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fun resetReaderViewerForAllManga() {
|
||||
db.inTransaction {
|
||||
db.lowLevel().executeSQL(
|
||||
RawQuery.builder()
|
||||
.query(
|
||||
"""
|
||||
UPDATE ${MangaTable.TABLE}
|
||||
SET ${MangaTable.COL_VIEWER} = 0
|
||||
""".trimIndent()
|
||||
)
|
||||
.affectsTables(MangaTable.TABLE)
|
||||
.build()
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user