This commit is contained in:
git-bruh 2023-03-10 12:46:01 +05:30
parent 51c33b2913
commit 5eab8bad2d
No known key found for this signature in database

View File

@ -4,20 +4,22 @@ import re
from copy import deepcopy from copy import deepcopy
from dataclasses import dataclass from dataclasses import dataclass
from os import environ, fsync from os import environ, fsync
from time import time from time import strftime, time
import feedparser import feedparser
import praw import praw
SECONDS_IN_WEEK = 60 * 60 * 24 * 7 SECONDS_IN_WEEK = 60 * 60 * 24 * 7
# Date Month, Year
STRFTIME_FORMAT = "%d %B, %Y"
class Config: class Config:
DB_PATH = "db.json" DB_PATH = "db.json"
SUBREDDIT = "developersindia" SUBREDDIT = "developersindia"
POST_FLAIR = "Hiring" 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 = """\ POST_TEXT = """\
This thread has all the latest job openings that haven't been posted on previous weekly threads. This thread has all the latest job openings that haven't been posted on previous weekly threads.