mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 21:35:32 +00:00
-
This commit is contained in:
parent
e20663a609
commit
ccb5b46d0b
1 changed files with 15 additions and 0 deletions
|
|
@ -149,6 +149,21 @@ void checkIfSourceIsObsolete(List<Source> sourceList, bool isManga) {
|
|||
}
|
||||
}
|
||||
}
|
||||
removeNsfwObsoleteSources();
|
||||
}
|
||||
|
||||
void removeNsfwObsoleteSources() {
|
||||
final ids = isar.sources
|
||||
.filter()
|
||||
.idIsNotNull()
|
||||
.isNsfwEqualTo(true)
|
||||
.isObsoleteEqualTo(true)
|
||||
.findAllSync()
|
||||
.map((e) => e.id!)
|
||||
.toList();
|
||||
isar.writeTxnSync(() {
|
||||
isar.sources.deleteAllSync(ids);
|
||||
});
|
||||
}
|
||||
|
||||
int compareVersions(String version1, String version2) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue