logs-gic
All checks were successful
deploy / deploy (push) Successful in 1m32s

This commit is contained in:
2023-12-25 10:48:50 +03:00
parent 48b8209e23
commit da3e7e55fd
4 changed files with 5 additions and 10 deletions

View File

@@ -144,7 +144,6 @@ async def update_shout(_, info, shout_id, shout_input=None, publish=False):
session.add(shout)
# main topic
# TODO: test main_topic update
if "main_topic" in shout_input:
old_main_topic = (
session.query(ShoutTopic)

View File

@@ -272,13 +272,9 @@ async def update_reaction(_, info, rid, reaction):
r.body = body
r.updated_at = int(time.time())
if r.kind != reaction["kind"]:
# NOTE: change mind detection can be here
# TODO: change mind detection can be here
pass
# FIXME: range is not stable after body editing
if reaction.get("range"):
r.range = reaction.get("range")
session.commit()
r.stat = {
"commented": commented_stat,

View File

@@ -288,7 +288,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
if text and len(text) > 2:
results = await SearchService.search(text, limit, offset)
results_dict = {r["slug"]: r for r in results}
print(results_dict)
# print(results_dict)
q = (
select(Shout)
@@ -302,7 +302,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
shouts_data = []
with local_session() as session:
results = list(session.execute(q).unique())
print(results)
# print(results)
print(f"[resolvers.reader] searched, preparing {len(results)} results")
for x in results:
shout = x[0]