From 5eab8bad2d117762103593eac7c68b7740cd18f2 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Fri, 10 Mar 2023 12:46:01 +0530 Subject: [PATCH] strftime --- job_thread/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/job_thread/main.py b/job_thread/main.py index c5dbae2..03dd6f4 100644 --- a/job_thread/main.py +++ b/job_thread/main.py @@ -4,20 +4,22 @@ import re from copy import deepcopy from dataclasses import dataclass from os import environ, fsync -from time import time +from time import strftime, time import feedparser import praw SECONDS_IN_WEEK = 60 * 60 * 24 * 7 +# Date Month, Year +STRFTIME_FORMAT = "%d %B, %Y" class Config: DB_PATH = "db.json" SUBREDDIT = "developersindia" POST_FLAIR = "Hiring" - POST_TITLE = "Don't Miss Out on These Job Opportunities | Weekly Job Openings Thread" + POST_TITLE = f"Don't Miss Out on These Job Opportunities | Weekly Job Openings Thread | {strftime(STRFTIME_FORMAT)}" POST_TEXT = """\ This thread has all the latest job openings that haven't been posted on previous weekly threads.