forked from rDrama/rDrama
fdfd
parent
3a016fcf0d
commit
56ac1d3a9c
|
@ -6,6 +6,7 @@ from urllib.parse import urlparse
|
||||||
from .mix_ins import *
|
from .mix_ins import *
|
||||||
from drama.helpers.lazy import lazy
|
from drama.helpers.lazy import lazy
|
||||||
from drama.__main__ import Base
|
from drama.__main__ import Base
|
||||||
|
from .flags import *
|
||||||
|
|
||||||
class SubmissionAux(Base):
|
class SubmissionAux(Base):
|
||||||
|
|
||||||
|
@ -415,6 +416,11 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
|
||||||
if self.url: return self.url.lower().endswith('.jpg') or self.url.lower().endswith('.png') or self.url.lower().endswith('.gif') or self.url.lower().endswith('.jpeg') or self.url.lower().endswith('?maxwidth=9999') or self.url.lower().endswith('?maxwidth=8888')
|
if self.url: return self.url.lower().endswith('.jpg') or self.url.lower().endswith('.png') or self.url.lower().endswith('.gif') or self.url.lower().endswith('.jpeg') or self.url.lower().endswith('?maxwidth=9999') or self.url.lower().endswith('?maxwidth=8888')
|
||||||
else: return False
|
else: return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def test(self):
|
||||||
|
print(self.flags.order_by(Flag.created_utc))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def active_flags(self):
|
def active_flags(self):
|
||||||
|
|
Loading…
Reference in New Issue