forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-02 16:04:43 +02:00
parent 3fee3dcb12
commit bbfc908a94
2 changed files with 56 additions and 77 deletions

View File

@ -33,6 +33,22 @@ tiers={
"(Rich Bich)": 5, "(Rich Bich)": 5,
} }
@app.get("/sex")
@admin_level_required(3)
def sex(v):
for u in g.db.query(User).filter(User.patron > 0, User.patron != 5).all():
data = {'access_token': GUMROAD_TOKEN, 'email': u.email}
response = requests.get('https://api.gumroad.com/v2/sales', data=data).json()["sales"]
if len(response) == 0: print(f"{u.username}: email not found")
response = response[0]
tier = tiers[response["variants_and_quantity"]]
if u.patron != tier:
print(f"{u.username}: patron {u.patron} tier {tier}")
return "sex"
@app.post("/settings/removebackground") @app.post("/settings/removebackground")
@limiter.limit("1/second") @limiter.limit("1/second")
@auth_required @auth_required

View File

@ -31,7 +31,7 @@
</style> </style>
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%"> <marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" width="100%"> <marquee direction="right" scrollamount=10 behavior="alternate" width="100%">
<img class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3"> <img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
</marquee> </marquee>
</marquee> </marquee>
{% endif %} {% endif %}
@ -39,7 +39,7 @@
{% if p.award_count("wholesome") > 1 %} {% if p.award_count("wholesome") > 1 %}
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%"> <marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" width="100%"> <marquee direction="right" scrollamount=10 behavior="alternate" width="100%">
<img class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3"> <img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
</marquee> </marquee>
</marquee> </marquee>
{% endif %} {% endif %}
@ -47,7 +47,7 @@
{% if p.award_count("wholesome") > 2 %} {% if p.award_count("wholesome") > 2 %}
<marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%"> <marquee class="seal" scrollamount=10 behavior="alternate" direction="up" height="100%">
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%"> <marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
<img class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3"> <img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
</marquee> </marquee>
</marquee> </marquee>
{% endif %} {% endif %}
@ -55,98 +55,61 @@
{% if p.award_count("wholesome") > 3 %} {% if p.award_count("wholesome") > 3 %}
<marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%"> <marquee class="seal" scrollamount=10 behavior="alternate" direction="down" height="100%">
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%"> <marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
<img class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3"> <img alt=":#marseywholesome:" class="sealimg" src="/static/assets/images/emojis/marseywholesome.webp?a=3">
</marquee> </marquee>
</marquee> </marquee>
{% endif %} {% endif %}
{% if p.award_count("train") %} {% if True %}
<style> <style>
@keyframes train { .train {
0% { position:fixed;
left: -20%; z-index:9999;
} pointer-events: none;
100% { }
left: 120%; .trainimg {
width: 100px;
}
@media (max-width: 992px) {
.trainimg {
width: 40px;
} }
} }
.train1 {
@keyframes trainrev { top: 10%
0% {
left: 120%;
}
100% {
left: -20%;
}
} }
.train2 {
@media (max-width: 768px) { top: 35%
.train1 {
position: fixed;
z-index: 10;
width: 35px;
animation: train 3s linear infinite !important;
}
.train2 {
display: none !important;
}
.train3 {
display: none !important;
}
.train4 {
display: none !important;
}
} }
.train3 {
@media (min-width: 768px) { top: 60%
.train1 { }
position: absolute; .train4 {
z-index: 10; top: 85%
width: 100px;
animation: trainrev 5s linear infinite !important;
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
top: 35%
}
.train2 {
position: absolute;
z-index: 10;
width: 100px;
animation: train 5s linear infinite !important;
top: 10%
}
.train3 {
position: absolute;
z-index: 10;
width: 100px;
animation: train 5s linear infinite !important;
top: 60%
}
.train4 {
position: absolute;
z-index: 10;
width: 100px;
animation: trainrev 5s linear infinite !important;
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
top: 85%
}
} }
</style> </style>
<img alt="train1" class="train1" src="/static/assets/images/emojis/marseytrain.webp?a=3"> <marquee class="train train1" direction="left" scrollamount=10 width="100%">
<img alt=":#marseytrain:" class="trainimg mirrored" src="/static/assets/images/emojis/marseytrain.webp?a=3">
</marquee>
{% endif %} {% endif %}
{% if p.award_count("train") > 1 %} {% if True %}
<img alt="train2" class="train2" src="/static/assets/images/emojis/marseytrain.webp?a=3"> <marquee class="train train2" direction="right" scrollamount=10 width="100%">
<img alt=":#marseytrain:" class="trainimg" src="/static/assets/images/emojis/marseytrain.webp?a=3">
</marquee>
{% endif %} {% endif %}
{% if p.award_count("train") > 2 %} {% if True %}
<img alt="train3" class="train3" src="/static/assets/images/emojis/marseytrain.webp?a=3"> <marquee class="train train3" direction="left" scrollamount=10 width="100%">
<img alt=":#marseytrain:" class="trainimg mirrored" src="/static/assets/images/emojis/marseytrain.webp?a=3">
</marquee>
{% endif %} {% endif %}
{% if p.award_count("train") > 3 %} {% if True %}
<img alt="train4" class="train4" src="/static/assets/images/emojis/marseytrain.webp?a=3"> <marquee class="train train4" direction="right" scrollamount=10 width="100%">
<img alt=":#marseytrain:" class="trainimg" src="/static/assets/images/emojis/marseytrain.webp?a=3">
</marquee>
{% endif %} {% endif %}