the ads got more acceptable

This commit is contained in:
Kima
2024-09-27 21:37:06 +02:00
parent aa10f0672e
commit 63fd37c31f
2 changed files with 10 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ List<DateWidget> getWidgets(List<Ad> providerAds, BuildContext context) {
for (var ad in providerAds) {
if (ad.date.isBefore(DateTime.now()) &&
ad.expireDate.isAfter(DateTime.now()) &&
DateTime.now().hour.isEven) {
DateTime.now().hour.isOdd) {
if (!hasPlus || ad.overridePremium) {
providerAds.sort((a, b) => -a.date.compareTo(b.date));