forked from rDrama/rDrama
master
parent
2cd93e6516
commit
2c57637bd7
|
@ -23,53 +23,6 @@ defaultcolor = environ.get("DEFAULT_COLOR", "fff").strip()
|
||||||
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
|
defaulttimefilter = environ.get("DEFAULT_TIME_FILTER", "all").strip()
|
||||||
cardview = bool(int(environ.get("CARD_VIEW", 1)))
|
cardview = bool(int(environ.get("CARD_VIEW", 1)))
|
||||||
|
|
||||||
# if site_name == "Drama":
|
|
||||||
# AWARDS = {
|
|
||||||
# "ban": {
|
|
||||||
# "kind": "ban",
|
|
||||||
# "title": "One-Day Ban",
|
|
||||||
# "description": "Bans the author for a day.",
|
|
||||||
# "icon": "fas fa-gavel",
|
|
||||||
# "color": "text-danger",
|
|
||||||
# "price": 5000
|
|
||||||
# },
|
|
||||||
# "shit": {
|
|
||||||
# "kind": "shit",
|
|
||||||
# "title": "Shit",
|
|
||||||
# "description": "Makes flies swarm a post.",
|
|
||||||
# "icon": "fas fa-poop",
|
|
||||||
# "color": "text-black-50",
|
|
||||||
# "price": 1000
|
|
||||||
# },
|
|
||||||
# "stars": {
|
|
||||||
# "kind": "stars",
|
|
||||||
# "title": "Stars",
|
|
||||||
# "description": "Puts stars on the post.",
|
|
||||||
# "icon": "fas fa-sparkles",
|
|
||||||
# "color": "text-warning",
|
|
||||||
# "price": 1000
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# else:
|
|
||||||
# AWARDS = {
|
|
||||||
# "shit": {
|
|
||||||
# "kind": "shit",
|
|
||||||
# "title": "shit",
|
|
||||||
# "description": "Makes flies swarm a post.",
|
|
||||||
# "icon": "fas fa-poop",
|
|
||||||
# "color": "text-black-50",
|
|
||||||
# "price": 1000
|
|
||||||
# },
|
|
||||||
# "stars": {
|
|
||||||
# "kind": "stars",
|
|
||||||
# "title": "Stars",
|
|
||||||
# "description": "Puts stars on the post.",
|
|
||||||
# "icon": "fas fa-sparkles",
|
|
||||||
# "color": "text-warning",
|
|
||||||
# "price": 1000
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
class User(Base, Stndrd, Age_times):
|
class User(Base, Stndrd, Age_times):
|
||||||
__tablename__ = "users"
|
__tablename__ = "users"
|
||||||
id = Column(Integer, primary_key=True)
|
id = Column(Integer, primary_key=True)
|
||||||
|
@ -180,17 +133,6 @@ class User(Base, Stndrd, Age_times):
|
||||||
|
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
# @property
|
|
||||||
# @lazy
|
|
||||||
# def user_awards(v):
|
|
||||||
|
|
||||||
# return_value = list(AWARDS.values())
|
|
||||||
|
|
||||||
# user_awards = v.awards
|
|
||||||
# for val in return_value: val['owned'] = user_awards.filter_by(kind=val['kind'], submission_id=None, comment_id=None).count()
|
|
||||||
|
|
||||||
# return jsonify(return_value)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def referral_count(self):
|
def referral_count(self):
|
||||||
|
|
|
@ -696,19 +696,4 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block GIFtoast %}
|
|
||||||
<div class="toast" id="toast-error-gif" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-animation="true" data-autohide="true" data-delay="5000">
|
|
||||||
<div class="toast-body bg-danger text-center text-white">
|
|
||||||
<i class="fas fa-exclamation-circle mr-2"></i>Unable to snag gifs :(
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block GIFpicker %}
|
|
||||||
{% if v %}
|
|
||||||
{% include "award_modal.html" %}
|
|
||||||
{% endif %}
|
|
||||||
{% include "expanded_image_modal.html" %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue