Minor fixes

This commit is contained in:
vas3k
2020-01-05 17:36:30 +01:00
parent be203d9bb5
commit fc712d2bce
3 changed files with 7 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ from boards.models import BoardFeed, Article, Board
DEFAULT_NUM_WORKER_THREADS = 5
DEFAULT_ENTRIES_LIMIT = 100
REFRESH_DELTA = timedelta(hours=1)
MIN_REFRESH_DELTA = timedelta(minutes=30)
queue = queue.Queue()
@@ -35,7 +35,7 @@ def update(num_workers, force):
if not force:
need_to_update_feeds = BoardFeed.objects.filter(
rss__isnull=False,
refreshed_at__lte=datetime.utcnow() - REFRESH_DELTA
refreshed_at__lte=datetime.utcnow() - MIN_REFRESH_DELTA
)
else:
need_to_update_feeds = BoardFeed.objects.filter(rss__isnull=False)

View File

@@ -276,6 +276,10 @@
font-weight: 600;
}
.message-popup {
text-align: center;
font-size: 120%;
}
.board-footer {
max-width: 800px;

View File

@@ -89,11 +89,11 @@
}
.message-wrapper {
max-width: var(--max-content-width);
padding: 100px 20px;
}
.message-popup {
max-width: 300px;
padding: 20px;
margin: 0 auto;
}