Skip to content

Commit a4233e1

Browse files
authored
Merge pull request #114 from jagerman/dont-reblind
Don't try blinding already-blinded users
2 parents 01d54a6 + 2e3e1dd commit a4233e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sogs/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ def print_room(room: Room):
282282
rooms = [Room(token=r) for r in args.rooms]
283283
except NoSuchRoom as nsr:
284284
print(f"No such room: '{nsr.token}'", file=sys.stderr)
285+
sys.exit(1)
285286

286287
for sid in args.add_moderators:
287288
u = User(session_id=sid, try_blinding=True)

sogs/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def check_needs_blinding(dbconn):
215215
EXCEPT
216216
SELECT "user" FROM needs_blinding
217217
)
218+
AND session_id LIKE '05%'
218219
""",
219220
dbconn=dbconn,
220221
):

0 commit comments

Comments
 (0)