forked from mtusi2026/mtusi2026lab2
fix and report update
This commit is contained in:
@@ -36,7 +36,7 @@ def snapshot(service, compose, database):
|
||||
compose + [
|
||||
'exec', '-T', service, 'psql', '-U', 'messenger', '-d', database, '-tAc',
|
||||
"SELECT id::text || '|' || chat_id::text || '|' || text FROM messages "
|
||||
'ORDER BY created_at DESC LIMIT 5',
|
||||
'ORDER BY created_at DESC, id DESC LIMIT 5',
|
||||
],
|
||||
cwd=ROOT,
|
||||
text=True,
|
||||
@@ -73,8 +73,7 @@ def main():
|
||||
],
|
||||
cwd=ROOT,
|
||||
)
|
||||
if restore.returncode not in (0, 1):
|
||||
restore.check_returncode()
|
||||
restore.check_returncode()
|
||||
after = snapshot(RESTORE_SVC, RESTORE, 'messenger_restore')
|
||||
elapsed = time.perf_counter() - started
|
||||
ok = (
|
||||
|
||||
Reference in New Issue
Block a user