46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
"""Templates for temporary application/sponsorship records"""
|
|
|
|
from datetime import datetime
|
|
|
|
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,
|
|
"10": None
|
|
}
|
|
}
|
|
|
|
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,
|
|
"label": ""
|
|
}
|
|
} |