This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/classes/templates.py

49 lines
1.2 KiB
Python
Raw Permalink Normal View History

"""Templates for temporary application/sponsorship records"""
from datetime import datetime
2023-03-09 17:25:06 +02:00
class DefaultApplicationTemp(dict):
def __init__(self, user: int, reapply: bool = False):
super().__init__({})
self.dict = {
"user": user,
"type": "application",
"complete": False,
"sent": False,
"state": "fill",
"reapply": reapply,
"stage": 1,
"application": {
"1": None,
"2": None,
"3": None,
"4": None,
"5": None,
"6": None,
"7": None,
"8": None,
"9": None,
2023-03-09 17:25:06 +02:00
"10": None,
},
}
2023-03-09 17:25:06 +02:00
class DefaultSponsorshipTemp(dict):
def __init__(self, user: int):
super().__init__({})
self.dict = {
"user": user,
"type": "sponsorship",
"complete": False,
"sent": False,
"state": "fill",
"stage": 1,
"sponsorship": {
"streamer": None,
"expires": datetime.fromtimestamp(0),
"proof": None,
2023-03-09 17:25:06 +02:00
"label": "",
},
}