old naming
This commit is contained in:
@@ -128,7 +128,7 @@ class ViewedStorage:
|
||||
try:
|
||||
shout = session.query(Shout).where(Shout.slug == shout_slug).one()
|
||||
shout_views = session.query(func.sum(ViewedEntry.amount)).where(
|
||||
ViewedEntry.shoutId == shout.id
|
||||
ViewedEntry.shout == shout.id
|
||||
).all()[0][0]
|
||||
self.by_shouts[shout_slug] = shout_views
|
||||
self.update_topics(session, shout_slug)
|
||||
@@ -169,7 +169,7 @@ class ViewedStorage:
|
||||
|
||||
viewed = ViewedEntry.create(**{
|
||||
"viewerId": viewer.id,
|
||||
"shoutId": shout.id,
|
||||
"shout": shout.id,
|
||||
"amount": amount
|
||||
})
|
||||
session.add(viewed)
|
||||
|
Reference in New Issue
Block a user