indent fix
This commit is contained in:
parent
53c3fdc7b8
commit
fb01b2cc78
|
@ -99,10 +99,10 @@ class TopShouts:
|
|||
month_ago = datetime.now() - timedelta(days = 30)
|
||||
with local_session() as session:
|
||||
stmt = select(\
|
||||
Shout,\
|
||||
func.sum(ShoutViewByDay.value).label("view"),\
|
||||
func.sum(ShoutRating.value).label("rating")\
|
||||
).\
|
||||
Shout,\
|
||||
func.sum(ShoutViewByDay.value).label("view"),\
|
||||
func.sum(ShoutRating.value).label("rating")\
|
||||
).\
|
||||
join(ShoutViewByDay).\
|
||||
join(ShoutRating).\
|
||||
where(Shouts.createdAt > month_ago).\
|
||||
|
|
Loading…
Reference in New Issue
Block a user