mirror of
https://github.com/developersIndia/deviras.git
synced 2024-12-22 16:19:50 +05:30
strftime
This commit is contained in:
parent
51c33b2913
commit
5eab8bad2d
@ -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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user