Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
(#24) search interface working for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
cbroms committed Mar 3, 2021
2 parents 1452cbb + c82c404 commit c7fb5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/managers/board_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_board(self, board_id, user_id):
user = self.gm.users.find_one({"short_id": user_id, "board_id": board_id})

units = self.gm.units.find({"chat": False, "board_id": board_id})
units_output = [self.gm._get_basic_unit(board_id, unit["short_id"]) \
units_output = [self.gm._get_extended_unit(board_id, unit["short_id"]) \
for unit in units if unit["hidden"] is False]

return {"nickname": user["nickname"], "units": units_output}
Expand Down Expand Up @@ -85,7 +85,7 @@ def add_unit(self, board_id, text):
unit_id = unit.short_id
self.gm._insert_transclusions(board_id, unit_id, transclusions)
self._record_unit_update(board_id, unit_id)
return {"unit": self.gm._get_basic_unit(board_id, unit_id)}
return {"unit": self.gm._get_extended_unit(board_id, unit_id)}

@Checker._check_board_id
@Checker._check_unit_id
Expand Down

0 comments on commit c7fb5db

Please sign in to comment.