default comment sorts to new
This commit is contained in:
parent
5b09b72206
commit
7c18978c54
3 changed files with 4 additions and 8 deletions
|
@ -65,6 +65,7 @@ class Submission(Base):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time())
|
||||
if 'new' in kwargs: kwargs['new'] = True # Always default to sort by new
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def __repr__(self):
|
||||
|
@ -485,4 +486,4 @@ class Submission(Base):
|
|||
return False
|
||||
|
||||
@lazy
|
||||
def active_flags(self, v): return len(self.flags(v))
|
||||
def active_flags(self, v): return len(self.flags(v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue